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