Laravel Community Tools by Tighten

Popular tricks

458 tricks
Forget cache upon model events or custom events
bwsewell 12 years ago 18765
You can use for forelse loop in your application.
techmahedy 6 years ago 18741
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 9 years ago 18735
Check if the collection exists or not.
debjit 6 years ago 18468
Automatic adding user id. In the: First create columns into database tables with names "updated_by" and "created_by"
fhferreira 12 years ago 18268
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 18185
Submit links to a DELETE route with a confirmation box.
jgoux 12 years ago 18109
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 18114
If we have a blog, sometimes we want to display all latest posts by category. Take an example with this website where I put those posts in a carousel on the homepage: http://dadack.com
mercuryser... 12 years ago 18058