Laravel Community Tools by Tighten

Recent tricks

458 tricks
The optional helper now can have a callback to execute in case the first argument is null.
laraning 8 years ago 3606
Sometimes you need to want tables columns as array while you editing the data, this will return a columns as array.
decipher 8 years ago 4492
I originally published this trick on Medium: https://medium.com/@simondepelchin/how-to-use-font-awesome-5-svgs-with-laravel-blade-a5dc93743cd0
webartisan 8 years ago 5403
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 7781
We don't like to duplicate a form for the "create" and "edit" methods. But how can you then put a value using the old and at the same time using the model attribute value without raising an exception?
laraning 8 years ago 3931
Had a need to copy files from Amazon S3 to my local system. This is the solution I ended up using. Working on Laravel 5.6
eric 8 years ago 18309
5.6
Sometimes you want to refer your custom middleware not by the full qualified namespace class, but only by an alias (E.g. like the ones that Laravel have created in the Middleware Kernel).
laraning 8 years ago 7362
This function will allow you to use human readable strings in place of integers when defining a time in seconds for caching, delays in jobs etc.
robjbrain 8 years ago 5252
Sometimes you have a blade view, and you would like to render a certain HTML code only if your controller action is the one you passed in the directive.
laraning 8 years ago 4410