lundi 9 mars 2020

i run cron job in laravel but it run lst time when i run command and after it does not run automatically in ubento server

in kernel.php i run schedular that my logic function run after every minutes

 $schedule->command('package:corn')->everyMinute();

in my commands folder following code i run

protected $signature = 'package:corn';


protected $description = 'this command use for package update';

/**
 * Create a new command instance.
 *
 * @return void
 */
public function __construct()
{
    parent::__construct();
}

/**
 * Execute the console command.
 *
 * @return mixed
 */
public function handle()
{ here is my logic which run fine}


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire