skip to Main Content

Schedule in Laravel 11

We are facing an issue with Laravel scheduled tasks using the call method in Kernel.php not executing as expected in development mode on Windows. When running php artisan schedule:work, it only displays "No scheduled commands are ready to run," even…

VIEW QUESTION

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