laravel-api-tester icon indicating copy to clipboard operation
laravel-api-tester copied to clipboard

php artisan route:cache throws LogicException

Open ldanielduarte opened this issue 4 years ago • 1 comments

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

ldanielduarte avatar Feb 22 '21 11:02 ldanielduarte

Hey.

Would like to help, but don't have time (and skills) for support. PR is welcome though.

asvae avatar Feb 22 '21 15:02 asvae