Cara Install Laravel Menggunakan Image Docker Composer

Kondisi:
Malas untuk mengganti versi PHP di local machine

Solusi:
Install laravel menggunakan composer image docker https://hub.docker.com/_/composer

Cara:
Masuk ke folder aplikasi
cd /Web/acmilan-app
Then, run the command:

docker run --rm -v $(pwd):/app composer create-project --prefer-dist laravel/laravel .

Finish.













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.