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 23524
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 12 years ago 23367
Support multi languages JSON response
Mahmoudz 9 years ago 23201
5.0
Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22749
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 22664
Automatically replace column with a translated value.
jesseyvano... 2 years ago 22577
This method list out all the registered middleware in laravel
sanjok1988 5 years ago 22558
In case you want to access Route parameters outside controller, you can access current Route object and extract parameters from there.
YOzaz 12 years ago 22010
4.1