Laravel Community Tools by Tighten

Popular tricks

458 tricks
We have released the source code of this website! You can check out the repository containing a mirror copy of this website: https://github.com/CodepadME/laravel-tricks to create your own websites like Laravel-tricks. It uses PSR-2 coding standards, a ton of libraries and packages and is a good resource to take a look into.
msurguy 12 years ago 9663
Sometimes you may wish to eager load a relationship, but also specify additional query constraints for the eager loading query. Here's an example:
BenaliDjam... 6 years ago 9655
Check if string is in any url segment or at the one specified.
pabloleone 8 years ago 9656
Creates a link for a US telephone number.
leek 11 years ago 9607
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 10 years ago 9614
If you need to sprinkle in some caching without building a bunch of Repositories. I've found this base Model and Service Provider very helpful. For updates: https://gist.github.com/danrichards/de22efa41b533d81fa1ec15f42cf64f5
danrichard... 9 years ago 9607
If you receive any error message like below after upgrading to Laravel 4.2, you should modify your queue config: production.ERROR: Undefined index: encrypt Add 'encrypt' => true, to config of Iron
kemalyen 11 years ago 9586
Loading views from a different location, other than 'app/views'
Whyounes 11 years ago 9555
I'm using a pivot table on the project I'm working with to filter category
dickyeka 9 years ago 9405