1

当我跑步时

php artisan route:cache

或者

php artisan optimize

它的回报:

无法为序列化准备路线 [{fallbackPlaceholder}]。使用闭包。

在供应商/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()

我现在应该怎么做才能解决这个问题??????

4

0 回答 0