Laravel Community Tools by Tighten

Recent tricks

459 tricks
Submit links to a DELETE route with a confirmation box.
jgoux 12 years ago 17881
Do not trust the client. Safe way to get CSRF token for use in Angular JS. Keeps it as a constant.
xtrasmal 12 years ago 42318
Sometimes, you may want to use different pagination types across your application. By default, Laravel will use the type specified in your app/config/view.php file, so you need to override this setting when you wish to use another type. Here is how to do so.
coucou 12 years ago 11548
Handling findOrFail exceptions
bwsewell 12 years ago 54273
Forget cache upon model events or custom events
bwsewell 12 years ago 18599
Creating a form macro is very easy and awesome for creating your own UI elements. The original downside I found was losing the automatic model binding from Form::model(). A user on StackOverflow helped solve the problem for me.
chadwithuh... 12 years ago 10365
There are a few tips already for active states on navigation, however none are based on Route names. I prefer to use Route names for all routes, so here is a modified version of the "active states" trick for route names.
chadwithuh... 12 years ago 13157
An easy helper method that will assist in setting active classes for navigation items based on the current route.
mattems 12 years ago 27918