Laravel Community Tools by Tighten

Tag "4.2" tricks

24 tricks
Get results in a table when there are no results for the relationship
wallacemax... 10 years ago 20156
Displaying different module/package dashboard widgets using view composers.
beanmoss 10 years ago 8853
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 10 years ago 13120
4.2
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 8133
Model Based Setting Different Connection when working with 2 or more database in laravel
dhrubo001 10 years ago 6843
Switching Maintenance Mode to Production And Vice Versa Quickly in laravel 4.2
dhrubo001 11 years ago 8494
In this example I use Monolog for logging user activity in my cms admin. Usage: add the following line to the controller's constructor: UserLog::write();
subdesign 11 years ago 33754
4.2
Change email configuration on the fly.
aglipanci 11 years ago 16058
4.2
Temporarily log in as another user, but switch back to the original user at any time. Inspired by the User Switching plugin for WordPress. I use this for testing data being shown based on user role.
dawiyo 11 years ago 18489