skip to Main Content

Calling a schedule on a function in Laravel console.php

I want to call a function in console.php as a schedule. Here is my console.php code: <?php use AppHttpControllersAuctionController; use IlluminateSupportFacadesSchedule; Schedule::call(function () { ([AuctionController::class, 'endAuction']); echo 'Zakończono aukcję.'; })->everyTenSeconds(); Here is my function code: public function endAuction(Request $request, $id)…

VIEW QUESTION
Back To Top
Search