I'm upgrading from Laravel 5.2 to 5.3. Most of the app is already upgraded except for this one error. While following the upgrade guide: https://laravel.com/docs/5.3/upgrade#upgrade-5.3.0 I can see there is a section about the guard method:
if you are customizing the authentication guard that is used for authentication, you may need to override the controller's guard method. You can examine each authentication controller's trait to determine which methods to override.
Is that what is happening here? I wonder why it complains about an undefined method. I checked SessionGuard.php (which comes with Laravel and I haven't modified at all) and there isn't any handle() method on either the 5.2 or the 5.3 version of the file. Also, while authenticated, I can browse to some routes properly, but others throw this error:
FatalThrowableError in compiled.php line 492:
Call to undefined method Illuminate\Auth\SessionGuard::handle()
in compiled.php line 492
at AuthManager->__call('handle', array(object(Request), object(Closure))) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in App.php line 48
at App->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 10177
at SubstituteBindings->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3312
at VerifyCsrfToken->handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 39
at VerifyCsrfToken->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13749
at ShareErrorsFromSession->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 12155
at StartSession->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13495
at AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 13432
at EncryptCookies->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 10054
at Pipeline->then(object(Closure)) in compiled.php line 8356
at Router->runRouteWithinStack(object(Route), object(Request)) in compiled.php line 8347
at Router->dispatchToRoute(object(Request)) in compiled.php line 8338
at Router->dispatch(object(Request)) in compiled.php line 2575
at Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) in Pipeline.php line 53
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in Debugbar.php line 51
at Debugbar->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 3374
at CheckForMaintenanceMode->handle(object(Request), object(Closure)) in compiled.php line 10069
at Pipeline->Illuminate\Pipeline\{closure}(object(Request)) in Pipeline.php line 33
at Pipeline->Illuminate\Routing\{closure}(object(Request)) in compiled.php line 10054
at Pipeline->then(object(Closure)) in compiled.php line 2519
at Kernel->sendRequestThroughRouter(object(Request)) in compiled.php line 2503
at Kernel->handle(object(Request)) in index.php line 53
Line 492 in compiled.php file:
public function __call($method, $parameters)
{
return $this->guard()->{$method}(...$parameters);
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire