-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Route [filament.admin.resources.users.edit] not defined. #10
Comments
Can you send the versions of the following:
|
|
After setup Customizing the authentication features all work and routes are defined, but in clean Filament install get error Route [filament.admin.resources.users.edit] not defined. |
Any solution? I have the same problem? |
Enable authentication features for a panel in the configuration file. app/Fillament/Resources/UserResource/Auth/Pages/CreateUser.php `<?php namespace App\Filament\Resources\UserResource\Pages; use App\Filament\Resources\UserResource; class CreateUser extends CreateRecord app/Fillament/Resources/UserResource/Auth/Pages/EditUser.php `<?php namespace App\Filament\Resources\UserResource\Pages; use App\Filament\Resources\UserResource; class EditUser extends EditRecord
}` |
IMO, this line isn't necessary. I don't have the [filament.{panel}.resources.users.edit] route, others too. |
Same problem here: Route [filament.admin.resources.admins.edit] not defined. In both, in Authentication Logs section and relation manager. |
You Need to have Admin Resources Created
if you are still facing the same issue, send the route:list Just to make sure, are you using multiple panels? |
If you user |
There is an configuration inside the
You can create a custom resource that extends that resource, copy the table method from there and modify the line that was commented from @akunbeben by change the route or remove the anchor. After this you can change the configuration to your custom AuthenticationLogResource. This will solve your problems for now. Further i think it will be a good idea to add some configuration for this behavior. |
After click on admin panel link authentication-logs get:
Symfony \Component \Routing \Exception\RouteNotFoundException
Route [filament.admin.resources.users.edit] not defined.
$response = $kernel->handle(
$request = Request::capture()
)->send();
Tapp\FilamentAuthenticationLog\Resources\AuthenticationLogResource: 83
Tapp\FilamentAuthenticationLog\Resources{closure}
Tapp\FilamentAuthenticationLog\Resources\AuthenticationLogResource 83 line:
return new HtmlString('<a href="'.route('filament.'.Filament::getCurrentPanel()->getId().'.resources.'.Str::plural((Str::lower(class_basename($record->authenticatable::class)))).'.edit', ['record' => $record->authenticatable_id]).'" class="inline-flex items-center justify-center hover:underline focus:outline-none focus:underline filament-tables-link text-primary-600 hover:text-primary-500 text-sm font-medium filament-tables-link-action">'.class_basename($record->authenticatable::class).'</a>');
The text was updated successfully, but these errors were encountered: