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 23681
Automatically replace column with a translated value.
jesseyvano... 2 years ago 23629
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 23534
Support multi languages JSON response
Mahmoudz 10 years ago 23401
5.0
Translatable Pro is designed for performance, storing phrases in separate database tables to simplify the maintenance of translations across all languages. With just one Composer install, you can seamlessly integrate comprehensive multi-language support into your app, enabling you to create advanced, optimized, and high-performance translatable applications with an efficient database structure.
a7medKhali... 2 years ago 23291
Using jQuery AJAX call to collect paginated data.
Mahmoudz 11 years ago 22980
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 22820
This method list out all the registered middleware in laravel
sanjok1988 5 years ago 22840