From last 2 days i am trying to setup Laravel cron job in my server. I have tried to add cron job into server but it is not working.
Cron Command i have tried to run every minute:
/usr/local/bin/php/home/prismati/hrms/artisan schedule:run >> /dev/null 2>&
Kernel.php:
protected $commands = [
Commands\AttendanceAlert::class
];
protected function schedule(Schedule $schedule){
$schedule->command('log:unmarked_attendance')->everyMinute();
}
Command File:
protected $signature = 'log:unmarked_attendance';
protected $description = 'Alert!';
public function __construct(){
parent::__construct();
}
public function handle(){
\Log::info('Testing Cron Job');
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire