Level 104
You are re-evaluating $start every time you call this method - it will never not run.
In any case, you can run a cron locally using the settings specified in the docs
1 like
I just set up task schedule to bump up a user's post to the top every minute for a week using this
public function registerSchedule($schedule)
{
$start = Carbon::now();
$end = $start->addDays(7);
$schedule->call('Corymillz\Advert\Component\PaidBoost@onPaidBoost')->everyMinute()->between($start, $end);
}
The function already been written. How can i test this on localhost? I am using xampp
Please or to participate in this conversation.