91445/how-to-manually-run-a-laravel-job-using-command-line
I have created a Job file in the folder app/Jobs/MyJob.php and i would like to run it just once, if its possible using command line.
Something like:
php MyJob:run
what command should I use to run a method in this file or the handle?
Hello,
If you are using a QUEUE_DRIVER diferent to sync and you want to dispatch a queue that you have created before, from your project folder run the command:
php artisan queue:work --queue=MyQueueName
Hope it works!!
Hello @kartik, The code below solved my problem: $messages ...READ MORE
Hello @kartik, cache:clear artisan command does calls flush function on current ...READ MORE
Hello @kartik, You can use less code, writing ...READ MORE
Hey, Facades provide a "static" interface to classes ...READ MORE
Hey @kartik, First you have to go to ...READ MORE
Named route is used to give specific ...READ MORE
Hello, This is simple you just need to ...READ MORE
Hey @kartik, Named routing is another amazing feature of ...READ MORE
Hello @kartik, It's not really Eloquent, to add ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.