-
Notifications
You must be signed in to change notification settings - Fork 43
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
Package not using the authentication guard setup in filament config #61
Comments
Please make sure your model is configured for filament, https://filamentphp.com/docs/2.x/admin/users#configuring-the-name-attribute |
Yes they're empty
…On Mon, 10 Jul 2023, 9:01 am ZedoX, ***@***.***> wrote:
I use the admin_users table and AdminUser Model for filament.
This package is not compatible with multi-guard yet.
[image: Screenshot 2023-07-10 at 12 24 46 AM]
<https://user-images.githubusercontent.com/12691366/252164879-10d22646-632d-41f8-bb38-4284ec9453e8.png>
Could you check activity_log table on the database and confirm the
whether the following columns are empty for the log shown in the
screenshot: causer_type, causer_id
—
Reply to this email directly, view it on GitHub
<#61 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADA2PJWLY76VUYDKSWNMWHTXPN5A7ANCNFSM6AAAAAAYSOQOUA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have a similar issue, but in my DB for example: 'Description' and 'Properties' shown in right way with 'First name Last name' example desc: But User Reference doesn't appear anywhere. Suggest? |
Default attribute is
in your User Model. |
filament-logger/src/Resources/ActivityResource.php
If fix it in my way. return $component->state($record->causer?->username); //or last_name etc. Hardcoded quick-fix :-) |
I have two authentication guards. The filament package is using a special admin one that uses a different table and model than the default users configured in laravel.
First thing i've noticed is that when i view an event in filament the user field is empty.
Second issue is after logging in with the regular auth guard. This package throws an error because it's trying to call some filament username function that obviously isn't defined on the regular Users model.
Here's a screenshot of the error.
For now, the quickest solution was to disable the access logger from the package config.
I can probably override the Logger and try and make it use only the admin guard but that would mean i'd have to override all the guards to properly get the username in all the other logs.
Bottom line, I think the package needs an update to read filament.auth.guard config value and apply that to all the logging.
The text was updated successfully, but these errors were encountered: