I have created commands in kernel.php
which is running twiceDaily() . I also want to attach it with button so i can run this command by clicking on that button. When i click on on button it should run at that moment.
Currently , i have just created twiceDaily command i need better way to implement button idea.
kernel.php
protected function schedule(Schedule $schedule)
{
$schedule->job(new \App\Jobs\ResendAttachment)->twiceDaily(1, 13);
}
I want to run command by cron job on server and by button also
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire