Laravel Community Tools by Tighten

Popular tricks

458 tricks
Check if string is in any url segment or at the one specified.
pabloleone 9 years ago 10049
When you save the password fields, it's been hashed every time. You have to put it in your User model. Thanks to Karl Merkli to add needsRehash
HakShinKen 12 years ago 10001
4.1
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 9966
sending variable values to your multiple controller and accessing them in your blade template
wasiqaftab 11 years ago 10020
Loading views from a different location, other than 'app/views'
Whyounes 12 years ago 9984
Hi guys , I wanna share with you this trick that you may don't know or did not used it before . what if you want to do something like this . Animals::dogs(); or Animals::cats(); how you can achieve this ... well it's simple with eloquent
anouarabds... 12 years ago 9950
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... 10 years ago 9983
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 12 years ago 9964
Creates a link for a US telephone number.
leek 12 years ago 9891