Laravel Community Tools by Tighten

Popular tricks

458 tricks
What if you want to use the @push blade directive but you don't want it to push twice the same content? For example, if you have a UI component that loads JS files and you want to reuse that component in the same view, so without this trick it will load twice your JS code from your different UI components.
laraning 8 years ago 7606
if you need to make a single ton class and you need to access that in your whole application do that in laravel 5
wasiqaftab 10 years ago 7603
One file for all routes is bad idea. For simplify this, look this snippets.
sr2ds 7 years ago 7554
4.2
A simple and easy setup laravel log file reader.
haruncpi 6 years ago 7550
When I was testing some code I wanted to check if some variable in a JSON column was updated. I was thinking about a LIKE query but when I digged into Laravel's code I saw the following possibility. After all it was pretty obvious because you can do this with normal queries as well, but I still wanted to share this solution.
MrAtiebati... 9 years ago 7521
There are three components to generating a Facade: 1 - The wanna be Facade Class, (the class that needs to become a facade). 2 - The Facade required Class, (which tells Laravel which registered class it pertains to) 3 - A Service Provider, (which registers the Facade class in the App container)
Mahmoudz 10 years ago 7511
In some cases Netshell/Paypal throws error "Class Paypal does not exist". In my case on ubuntu/php7/nginx (on windows with apache is ok). So here is simple workaround
escapeboy 9 years ago 7511
Simple breadcrumb which does not require anything more than a blade. Clone it from github [https://github.com/sina-rzp/laravel-simple-breadcrumb].
sina-rzp 9 years ago 7498
Apache server configuration files
yuchao 11 years ago 7472
4.0