Tuesday, April 11, 2017

How to manually run a laravel/lumen 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 mthod in this faile or the handle?



via Oscar David

Advertisement