Cara Trigger Job Queue di Tinker Laravel

Berikut contoh cara trigger Job Queue di Tinker
Pertama masuk ke tinker laravel php artisan tinker
Lalu masukan command berikut \Queue::push(new \App\Jobs\ManualTriggerPush(\App\Models\User::find(634)) )

Psy Shell v0.10.12 (PHP 7.4.20 — cli) by Justin Hileman
New version is available (current: v0.10.12, latest: v0.11.10)
>>> \Queue::push(new \App\Jobs\ManualTriggerPush(\App\Models\User::find(634)) )

I hope this helps! Let me know if you have any questions.













Leave a Reply

Your email address will not be published. Required fields are marked *