Laravel Community Tools by Tighten

Recent tricks

458 tricks
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 41987
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 11285
Handling findOrFail exceptions
bwsewell 12 years ago 53914
Forget cache upon model events or custom events
bwsewell 12 years ago 18347
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 10139
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 12877
An easy helper method that will assist in setting active classes for navigation items based on the current route.
mattems 12 years ago 27601
What if instead of using debugging bar like https://github.com/barryvdh/laravel-debugbar or others, you could use something that integrates directly with Chrome's web developer tools? Imaging viewing request information, headers, get and post data, cookies, session data, DB queries, routes and timing, all within Chrome's developer tools panel? With this extension, you can! Read the instructions below to know how!
msurguy 12 years ago 20195