Laravel Community Tools by Tighten

Popular tricks

458 tricks
Sometimes we need to create dynamic routes based on database information. Here is an example that you can use on your projects, mostly inside your routes file, by retrieving a routes array (as example) and load them dynamically. Have fun! Bruno twitter.com/brunocfalcao
bfalcao 8 years ago 18309
You can use for forelse loop in your application.
techmahedy 5 years ago 18267
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 18203
5.6
Check if the collection exists or not.
debjit 5 years ago 18022
Automatic adding user id. In the: First create columns into database tables with names "updated_by" and "created_by"
fhferreira 12 years ago 17981
Ever find yourself wanting to only find models that have a certain relationship matching certain conditions? Laravel 4.1 makes this really easy, and introduces great eager loading constraints!
stidges 12 years ago 17783
Using of the Bootstrap Error classes for flash message, one simple helper would help to simply to extend the flash messages.
yoosuf 12 years ago 17730
If you have DB column which you want to be set only once and never updated again, you can set that restriction on Eloquent Model, with a mutator
fatihtopra... 5 years ago 17663
Submit links to a DELETE route with a confirmation box.
jgoux 12 years ago 17594