Route [voyager.assets.index] not defined. (View: C:\Users\com2go\Desktop\code\socialmanager\vendor\tcg\voyager\resources\views\tools\database\index.blade.php)
made a new installation of laravel, installed voyager
created one database table, on the second one i got the same error as above
ErrorException (E_ERROR)
Route [voyager.assets.index] not defined. (View: C:\Users\com2go\Desktop\code\socialmanager\vendor\tcg\voyager\resources\views\tools\database\index.blade.php)
Previous exceptions
Route [voyager.assets.index] not defined. (0)
* @return string
*
* @throws \InvalidArgumentException
*/
public function route($name, $parameters = [], $absolute = true)
{
if (! is_null($route = $this->routes->getByName($name))) {
return $this->toRoute($route, $parameters, $absolute);
}
throw new InvalidArgumentException("Route [{$name}] not defined.");
}
/**
* Get the URL for a given route instance.
*
* @param \Illuminate\Routing\Route $route
* @param mixed $parameters
* @param bool $absolute
* @return string
*
* @throws \Illuminate\Routing\Exceptions\UrlGenerationException
*/
protected function toRoute($route, $parameters, $absolute)
{
return $this->routeUrl()->to(
Did you tried php artisan optimize:clear ?
Unfortunately assets is a route used and generated by Voyager.
So this will conflict with your BREAD named assets.
We will rename this.
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have further questions please ask in our Slack group.
Most helpful comment
Did you tried
php artisan optimize:clear?