I wanted to schedule a task, read the documentation of laravel, suggesting to use IlluminateSupportFacadesSchedule .
console.php
<?php
use IlluminateSupportFacadesArtisan;
IlluminateSupportFacadesSchedule::call(function (){
AppModelsUser::find(22)->delete();
})->dailyAt('');
But when execute command
php artisan schedule:list
giving error
Class “IlluminateSupportFacadesSchedule” not found .
composer.json
"php": "^8.1",
"laravel/framework": "^10.10",
Honestly, I couldn’t find anything on the Internet.
New contributor
Back Ismoil is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1