1. php artisan quee:table
2. migrate
3. .env queue_connection=sync change to database
4. php artisan make:job NamaJob
5. open app/job/NamaJob.php
6. in handle() method you can fill with jobs for example sending email.
7. and then call Job in anywhere you want. egg
$job = new NamaJob();
$this->dispatch($job);
8. php artisan queue:work
0 Komentar