Laravel Community Tools by Tighten

Popular tricks

458 tricks
Avoid casting views to strings. If your view contains an error, casting with `(string)` will cause a less-than-helpful exception to be thrown, pertaining to throwing an exception within the view's `__toString()` method. Use `View::make()->render()` instead.
kwoodfrien... 12 years ago 23335
You can find it here as well: https://github.com/mousavian/laravel-4-custom-db-log or you can just simply do: 1. create logger.php in your "app" folder 2. edit "app\start\global.php" file (or local.php), and add this: 3. all logs will be at "app\storage\logs\query.log"
mousavian 11 years ago 23154
Support multi languages JSON response
Mahmoudz 9 years ago 23011
5.0
This stumped me for some time and after digging around I found it works great, the uploaded file can be removed from the server as well as the database entry. works well for file sharing and image sharing sites.
blackrain 12 years ago 22539
Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22528
This method list out all the registered middleware in laravel
sanjok1988 5 years ago 22301
In case you want to access Route parameters outside controller, you can access current Route object and extract parameters from there.
YOzaz 11 years ago 21847
4.1
Automatically replace column with a translated value.
jesseyvano... 1 year ago 21741