Laravel Ошибка $order is undefined

PHP - 7.2.34 laravel - 6.2

Выбивает ошибку Make the variable optional in the blade template. Replace {{ $order }} with {{ $order ?? '' }}

введите сюда описание изображения

Пробовал php artisan route:clear - проходит А вот $ php artisan route:cache - выбивает ошибку

   LogicException  : Unable to prepare route [api/user] for serialization. Uses Closure.

  at D:\programming\OpenServer\domains\laravel\vendor\laravel\framework\src\Illuminate\Routing\Route.php:917
    913|      */
    914|     public function prepareForSerialization()
    915|     {
    916|         if ($this->action['uses'] instanceof Closure) {
  > 917|             throw new LogicException("Unable to prepare route [{$this->uri}] for serialization. Uses Closure.");
    918|         }
    919|
    920|         $this->compileRoute();
    921|

введите сюда описание изображения


Ответы (0 шт):