asvae / laravel-api-tester

Test your routes without hassle
http://laravel-api-tester.asva.by/
MIT License
354 stars 52 forks source link

php artisan route:cache throws LogicException #51

Open ldanielduarte opened 3 years ago

ldanielduarte commented 3 years ago

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
asvae commented 3 years ago

Hey.

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