multiauth_tutorial icon indicating copy to clipboard operation
multiauth_tutorial copied to clipboard

Upgrade to laravel 5.8

Open x-ciphers opened this issue 6 years ago • 2 comments
trafficstars

i am facing error while upgrade to laravel 5.8 Error : route:cache 'Unable to prepare route [api/user] for serialization. Uses Closure.' #22034 Thanks

 

x-ciphers avatar Mar 22 '19 01:03 x-ciphers

comment all closure function then you will be able to cache all routes.

susantp avatar Apr 17 '19 10:04 susantp

This worked for me in Laravel 5.8 ... use Illuminate\Support\Facades\Route; ... protected function redirectTo($request) { if (! $request->expectsJson()) { if (Route::is('admin.*')) { return route('admin.login'); } return route('login'); } }

GauravSinghPawar avatar May 13 '19 19:05 GauravSinghPawar