Laravel Community Tools by Tighten

Popular tricks

458 tricks
Sometimes you need to use some packages only in your local environment, like for debug purposes. You can include service providers in your local configuration file app/config/local/app.php. You have to worry about indexes since if you just paste service provider, it will overwrite one with same index in original configuration.
lazychaser 12 years ago 9063
This code shows how to trigger a Modal onScroll event to perform and assert against an ajax request
nezarfadle 9 years ago 9041
A Controller-based solution to add the CSRF filter to all POST requests.
danalloway 12 years ago 8990
Using Sentry With Eloquent
Mahmoudz 10 years ago 8978
Listen to the `Illuminate\Mail\Events\MessageSending` event, and perform logic when needed.
stevebauma... 9 years ago 8960
Learn how to make a function to easily test which menu items should be marked as active depending on which page you are currently viewing in your browser. Add class of active to bootstrap menu items on different pages. Wherever you need to apply an active class ( or any other class ) in order to make a menu item active depending on which page you are currently viewing, or for any other sort of functionality you might need, this is the way you can do it with Laravel ( or plain PHP just a bit differently ) Watch the video on how to do it https://www.youtube.com/watch?v=E1oit3sd-7k
Novica89 10 years ago 8944
Displaying different module/package dashboard widgets using view composers.
beanmoss 11 years ago 8945
symply dont register unessecary route you dont have to use facade, $router instance is set by the function in route provider with config cached and files compiled i get app booted in ~30ms vs ~50 on my dev server
d3v2a 10 years ago 8942
5.0