Laravel Community Tools by Tighten

Recent tricks

458 tricks
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 14700
5.0
I don't personally use it, but some might find it useful. Laravel 5 paginator accepts a custom presenter for the paginator. In case you don't want to create a class or want to edit HTML directly, try the following trick.
moon0326 10 years ago 6930
5.0
If you are using Web Developer Extension in Firefox (or similar), you can enable the debug mode creating a cookie. Just create a cookie called 'debug' with value '1', and path '/', then open up your app.php and edit the debug option with the following:
davidmoral... 10 years ago 7149
When user clicks on "delete" button, open a confirmation box before deleting an item.
ismaeltoe 10 years ago 46644
Iteratively display "page breadcrumbs" - ideal for a partial.
Dombo 10 years ago 97201
Variable Dump Helper, a function to dump variables to the screen, in a nicely formatted manner. This is useful if you want to see the contents of your variable array. This is originally created by Mr. Joost van Veen. Source: https://gist.github.com/accent-interactive/3838495
kankuro 10 years ago 8158
I was looking for a way to remove one of my middlewares in testing. I could not find it, so I wrote a simple function to do it. Put the following function in your 'TestCase.php'
moon0326 10 years ago 9193
Auth::attempt($auth) giving problem. ErrorException in ClassLoader.php line 317: Uninitialized string offset: 0
Sanjar7 10 years ago 9873
5.0
Model Based Setting Different Connection when working with 2 or more database in laravel
dhrubo001 10 years ago 6856