Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

run queue after x minutes laravel

public function store() {
    // some stuff

    // after 10 minutes
    $on = CarbonCarbon::now()->addMinutes(10);        

    dispatch(new AppJobsSomeJob(...$someVariables))->delay($on);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #run #queue #minutes #laravel
ADD COMMENT
Topic
Name
4+3 =