Nova::userModel()
method has hard-coded configuration path
#4082
Unanswered
stevebauman
asked this question in
Ideas & Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I'm the creator of an authentication package that uses a different configuration path than the standard Laravel Eloquent auth config path. Since Laravel Nova has a hard-coded config path to the application user model, Nova retrieves an invalid value and attempts to call methods upon it.
I've had a couple users report this exception:
DirectoryTree/LdapRecord-Laravel#423
DirectoryTree/LdapRecord-Laravel#422
Example Configuration From Package
Resolution
It would be useful if users could instead use a callback to retrieve the application's user model.
This callback could also receive the provider and guard for easier retrieval:
Detailed steps to reproduce the issue on a fresh Nova installation:
Use any auth provider without an
auth.providers.{$provider}.model
configuration path.Beta Was this translation helpful? Give feedback.
All reactions