I have defined a command and make it can run every minutes in Kernel with schedule. But when i use artisan command to run, it only run once time.So, i want to make it run auto every minutes in Xampp in window 10. But how can i add : * * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1
to my server Can i have run scheduler automatic? In :
public function handle()
{
$banMember = MemberAccount::where('isBan',1)->get();
foreach($banMember as $ban)
{
$ban->isBan = 0;
$ban->save();
}
}
Here are some hints for you to do the task scheduling
https://www.drupal.org/docs/7/setting-up-cron-for-drupal/configuring-cron-jobs-with-windows http://www.z-cron.com/
* * * * *
means that it has to be running every minute.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.