I am working on laravel scheduling everything is working fine. My schedule code is below:
public function handle()
{
//
$words = [
'aberration' => 'a state or condition markedly different from the norm',
'convivial' => 'occupied with or fond of the pleasures of good company',
'diaphanous' => 'so thin as to transmit light',
'elegy' => 'a mournful poem; a lament for the dead',
'ostensible' => 'appearing as such but not necessarily so'
];
$key = array_rand($words);
$value = $words[$key];
$word = new Word;
$word->word_key = $key;
$word->word_value = $value;
$word->save();
$this->info('Word of the Day saved in table');
}
protected function schedule(Schedule $schedule)
{
$schedule->command('word:day')->everyMinute();
}
Now after that, I run the command the PHP artisan schedule: run it's saving the data in word table.
Now my question is that after one minute it's not saving again... I have researched on google and try many references it's not working at all.
My project is in E Drive path is E:/xammp/htdocs/testtutorials/phpmonitor and I run below command and it's not working
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
----------------------------------------------------------
* * * * * php /E:/xammp/htdocs/testtutorials/phpmonitor/artisan schedule:run >> /dev/null 2>&1
its giving me below error:
The system cannot find the path specified.