You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when generating a new crud on a plural table, the route is created in the singular, but the references are in the plural. There is therefore an error when using the route: throw new RouteNotFoundException("Route [{$name}] not defined.");.
The error is on line 276 in the command vendor\takielias\tablar-crud-generator\src\Commands\GeneratorCommand.php.
The fix to apply is: '{{modelRoute}}' => $this->options['route'] ?? Str::kebab(Str::plural($this->name, 1)), instead of '{{modelRoute}}' => $this->options['route'] ?? Str::kebab(Str::plural($this->name)),
The text was updated successfully, but these errors were encountered:
when generating a new crud on a plural table, the route is created in the singular, but the references are in the plural. There is therefore an error when using the route:
throw new RouteNotFoundException("Route [{$name}] not defined.");
.The error is on line 276 in the command
vendor\takielias\tablar-crud-generator\src\Commands\GeneratorCommand.php
.The fix to apply is:
'{{modelRoute}}' => $this->options['route'] ?? Str::kebab(Str::plural($this->name, 1)),
instead of'{{modelRoute}}' => $this->options['route'] ?? Str::kebab(Str::plural($this->name)),
The text was updated successfully, but these errors were encountered: