Skip to content

php artisan route:cache throws LogicException #51

Open
@ldanielduarte

Description

@ldanielduarte

There is a problem in routes.php, fonts route alias must not be named image. Change to font instead.

Output:

Route cache cleared!

   LogicException 

  Unable to prepare route [api-tester/assets/img/{_file}] for serialization. Another route has already been assigned name [api-tester.image].

  at vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:212
    208â–•             $route->name($name = $this->generateRouteName());
    209â–• 
    210â–•             $this->add($route);
    211â–•         } elseif (! is_null($symfonyRoutes->get($name))) {
  ➜ 212▕             throw new LogicException("Unable to prepare route [{$route->uri}] for serialization. Another route has already been assigned name [{$name}].");
    213â–•         }
    214â–• 
    215â–•         $symfonyRoutes->add($route->getName(), $route->toSymfonyRoute());
    216â–• 

      +19 vendor frames 
  20  artisan:37
      Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

   Whoops\Exception\ErrorException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions