Laravel Community Tools by Tighten

Popular tricks

458 tricks
case: user has many posts and post has many comments. we need user's posts with comments:
sanjok1988 5 years ago 13352
Hello there! How to do Excel file validation in laravel? In Laravel you can use validate the file upload with extension using After Hooks. Read more from https://laravel.com/docs/5.5/validation#after-validation-hook
decipher 8 years ago 13335
There is easy way to update relation model without query for related model.
monaye 10 years ago 13315
I have some pages that I like to popup in an informative ajax modal as well as having their own page. However as those pages extend a layout within the template I was getting the whole page with layout in my modal. Using renderSections() was the solution. In the example below my template section was called 'content'
leoden 10 years ago 13288
This is the trick i use whenever i want to seed states or countries. I simply put the states inside an array and create a loop through the array and save each record into the database instead of repeating the instance to save the records.
Adewagold 8 years ago 13211
Often you have a form in your application that has a file input (logo, picture, etc...) and you would like to test it. You might have been stuck when trying to test that form, puzzled at the odd errors you got while you did used the attach() method provided in the Laravel Integrated test package. I will show you how to smoothly send a file to your server when you run your PHPUnit test suite.
MehdiSouih... 10 years ago 13169
X-editable allows you to create editable elements on your page. It can be used with any engine (bootstrap, jquery-ui, jquery only) and includes both popup and inline modes. Let's have a quick look at implementing this in Laravel apps.
baqirfaroo... 9 years ago 13159
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 13143
4.2
Laravel is a web application framework with expressive, elegant syntax.The PHP Framework for Web Artisans,freeing you to create without sweating the small things. CRUD Operation With Server Side.
pakainfo-c... 5 years ago 13096