Laravel Community Tools by Tighten

Popular tricks

458 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 13302
4.2
Custom image dimensions validator for minimum height and width.
aglipanci 11 years ago 13222
5.0
There are a few tips already for active states on navigation, however none are based on Route names. I prefer to use Route names for all routes, so here is a modified version of the "active states" trick for route names.
chadwithuh... 12 years ago 13126
Save yourself from all the boilerplate of tracking/observing and reacting to model attribute changes.
alexstewar... 4 years ago 13109
This snippet will explain how to use environment variables to configure your environment. Blog post: http://dor.ky/laravel-homestead-add-enviroment-variables-to-nginx/
ssx 12 years ago 13052
4.1
Here a user has a location with many to many positions. This query finds users having position id 4 and location id 6. the tables are users, profile, locations. and profile has location_id.
sanjok1988 6 years ago 13034
Laravel offers a dynamic interface for assigning certain data. This can be used e.g. for adding a dynamic 'where' to your Eloquent queries. However, not everyone know that this same trick also works on View assignments!
stidges 12 years ago 12974
Dynamically testing and Pagination feature in a Restful API
Mahmoudz 10 years ago 13039
If I Let You Go, I Will Never Know - Westlife
saiming96 6 years ago 13017