Answer the question
In order to leave comments, you need to log in
How to run a function every minute in Laravel?
You need to run the function of checking MAC addresses every minute, I wrote a function in Kernel
protected function schedule(Schedule $schedule) {
$schedule->call(function () {
$controller = new AdminController();
$controller->updateStatus();
})->everyMinute();
}
php artisan schedule:run
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question