When using defer in routes in laravel, a php fatal error is returned
Im playing around with defer in laravel. I have this: Route::get('testing', function () { defer(function(){ // sleep(3); Log::info('sleeping'); }) ->always(); // Will always run defer once executed return 'Rtoufasdfa'; }); Im getting this in my sail terminal. PHP Fatal error:…