Laravel Community Tools by Tighten

Recent tricks

459 tricks
Once jobs have been added on the queue, we need to process them one by one. php artisan queue:listen does - It listens for jobs and runs them as they become available. But the main problem is how do we make php listen at all times ? We need to avoid having to "supervise" this process manually. This is where supervisord comes in. This is the configuration file to be placed in the /etc/supervisor/conf.d/ directory, which will create a supervisor program called "queue" which will monitor and make sure the php artisan queue:listen --tries=3 is always running.
larageek 11 years ago 13370
4.2
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... 11 years ago 14881
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 11 years ago 7139
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... 11 years ago 7327
When user clicks on "delete" button, open a confirmation box before deleting an item.
ismaeltoe 11 years ago 46963
Iteratively display "page breadcrumbs" - ideal for a partial.
Dombo 11 years ago 97517
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 11 years ago 8426
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 11 years ago 9409
Auth::attempt($auth) giving problem. ErrorException in ClassLoader.php line 317: Uninitialized string offset: 0
Sanjar7 11 years ago 10151
5.0