You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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');
}
}
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
The text was updated successfully, but these errors were encountered: