Laravel Community Tools by Tighten

Popular tricks

458 tricks
What if you’re working with non-Laravel database and your timestamp columns are named differently? Maybe, you have create_time and update_time. Luckily, you can specify them in the model, too
fatihtopra... 5 years ago 15035
Send a reinitilisation code (6 digits) by email instead of a pratice link for mobile customers. In this case we are using fortify but working well with the laravel authentication system in general.
gabeta 4 years ago 15029
I have a legacy system that uses SHA1 for passwords as opposed to bcrypt, which is used by Laravel. For now, I need people to be able to access through both systems. I use the auth.attempt event to handle password conversion.
madshadow 12 years ago 14949
Gives you the ability to log all events (your own and Laravels built in events)
clarkeash 11 years ago 14880
Instead of always having to include the button to open the modal, create the modal and all its contents, you can dynamically create the modal and load the route of the content you want to open in a very simple way. This allows you to still display the ever updated data without much effort in editing cases.
sr2ds 7 years ago 14801
This Trait helps you to pass "variables" anywhere in controllers to "view" . you can use "$this->view->..." in controller to pass your variables , also you can use "$this->view()" same as "view()" helper with same functionality to render the view . ( this package is made by larabook.ir)
hpakdaman 10 years ago 14775
This trick is what we use to make writing controllers very quick and easy. The base controller has methods plugged in where needed to automatically load views to a set of templates on it's own. All you need to do is pass it the data you want displayed. It also handles missingmethod to automatically look for logical views. Let me know what you think or any ideas for improving upon it. As a note, I use a separate controller to set the page title and menu items.
stygian 12 years ago 14741
I think this is very nice and simple :D You can modify at will you. I think this will save the use of `use` when you make a controller that has a namespace
gravitano 11 years ago 14743
You’re using Laravel 5 and you want to switch from less (which is used by default) to sass? Here is some steps that you can follow in order to make that transition.
mercuryser... 10 years ago 14707
5.0