Laravel Community Tools by Tighten

Popular tricks

458 tricks
Let's say that your validation is conditional on multiple rules.... This is a bit tricky because it's not obvious how to get the other rules passed to the validator. Here's how you'd do it
sgelbart 10 years ago 9199
4.0
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 9136
This code shows how to trigger a Modal onScroll event to perform and assert against an ajax request
nezarfadle 9 years ago 9113
A Controller-based solution to add the CSRF filter to all POST requests.
danalloway 12 years ago 9055
Listen to the `Illuminate\Mail\Events\MessageSending` event, and perform logic when needed.
stevebauma... 10 years ago 9070
Using Sentry With Eloquent
Mahmoudz 11 years ago 9056
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 9023
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 9012
5.0