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
php artisan schematics:install failed #21
Comments
Hi guys, Same behavior on a fresh Laravel 7.0.8 install. If you remove all your route content (in api.php and web.php), install can run but you got this error when you visit {your-app}/schematics:
|
Hi @saimyosett , This is due to Laravel being unable to cache routes that contains closures. Duplicate of #11 @brocorp-dev I've just tested out in a fresh 7.0.8 myself. Didn't got any issues. By the looks of the Exception message you are getting it seems to be related to your |
Hi @mtolhuys I have this issue too, left a comment over here as marked as duplicate: Not sure if that is best practice as it's a closed ticket, so leaving a note here if thats ok. Looking forward to trying Schematics out. Thanks |
I had the same bug, commented I suggest something like this :
|
Hi @raisonon & @Chouchen, I like the try / catch approach, including it now since this issue is coming up too much. Like this: |
Done! 0.9.11 contains this. |
Fab - so on a new install just head to web.php and api.php and remove the routes auto included (that use closures). Thanks! |
LogicException
at vendor/laravel/framework/src/Illuminate/Routing/Route.php:1039
1035| */
1036| public function prepareForSerialization()
1037| {
1038| if ($this->action['uses'] instanceof Closure) {
33 artisan:37
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
The text was updated successfully, but these errors were encountered: