/
Write
Start a team blog
NEW ✨
Start a team blog, invite your team, and start publishing.
My FeedExploreDraftsBookmarks
Team BlogsNEWRFAs
AboutCareersOfficial Blog

Trending tags
Show more

© 2022 Hashnode

Laravel

#laravel

Start Writing
14.2K Followers·1.7K Articles
HotNew
Stef Rouschop·20 hours ago

How to keep line breaks in user input without unescaping it in Laravel

The problem I recently got a question from a client about disappearing line breaks. It was a valid question since the text came from a textarea input that was echoed out on a page. The type of content…

How to keep line breaks in user input without unescaping it in Laravel
#laravel
22
Said Bakr

How to control html class depending on Laravel route

Laravel

Many times, we are facing the issue to assign a different CSS class depending on which page we are visiting. I present 2 ways to do this. Using php ternary operator in Blade file <a href="{{route('authentication')}}" class="{{ reques…

#laravel#php+1