Reputation: 75
when i run
php artisan route:cache
or
php artisan optimize
it's return :
Unable to prepare route [{fallbackPlaceholder}] for serialization. Uses Closure.
at vendor/laravel/framework/src/Illuminate/Routing/Route.php:1150
1146| */ 1147| public function prepareForSerialization() 1148| { 1149| if ($this->action['uses'] instanceof Closure) { 1150| throw new LogicException("Unable to prepare route [{$this->uri}] for serialization. Uses Closure."); 1151| } 1152| 1153| $this->compileRoute(); 1154| +14 vendor frames 15 artisan:37 Illuminate\Foundation\Console\Kernel::handle()
What should I do now to solve this problem?????
Upvotes: 1
Views: 269