After trying all this in ubuntu 20.04
/var/www/snipe-it$ sudo php artisan route:clear Route cache cleared!
/var/www/snipe-it$ sudo php artisan config:clear Configuration cache cleared!
/var/www/snipe-it$ sudo php artisan route:clear
Route cache cleared!
/var/www/snipe-it$ sudo php artisan cache:clear Application cache cleared!
/var/www/snipe-it$ sudo php artisan optimize Configuration cache cleared!
Configuration cached successfully!
Route cache cleared!
Getting Error-
LogicException While trying command-sudo php artisan | Getting the Error- Unable to prepare route [api/v1/consumables/view/{id}/users] for serialization. Another route has already been assigned name [api.consumables.showUsers].
at vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:218
214▕ $route->name($name = $this->generateRouteName());
215▕
216▕ $this->add($route);
217▕ } elseif (! is_null($symfonyRoutes->get($name))) {
➜ 218▕ throw new LogicException("Unable to prepare route [{$route->uri}] for serialization. Another route has already been assigned name [{$name}].");
219▕ }
220▕
221▕ $symfonyRoutes->add($route->getName(), $route->toSymfonyRoute());
222▕
+30 vendor frames
31 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Does anyone know how to resolve this?