Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to laravel 5.8 #27

Open
x-ciphers opened this issue Mar 22, 2019 · 2 comments
Open

Upgrade to laravel 5.8 #27

x-ciphers opened this issue Mar 22, 2019 · 2 comments

Comments

@x-ciphers
Copy link

x-ciphers commented Mar 22, 2019

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

 

@susantp
Copy link

susantp commented Apr 17, 2019

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

@GauravSinghPawar
Copy link

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');
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants