Skip to content
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

When nova uses diff guard #27

Open
nenads opened this issue Dec 20, 2019 · 4 comments
Open

When nova uses diff guard #27

nenads opened this issue Dec 20, 2019 · 4 comments

Comments

@nenads
Copy link

nenads commented Dec 20, 2019

/** * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function sender() { return $this->belongsTo(config('auth.providers.users.model')); }

Should sender be same model provider that is used by nova guard ?

@nenads
Copy link
Author

nenads commented Dec 20, 2019

something like this:
$guard = config('nova.guard'); $senderModel = config('auth.guards.' . $guard . '.provider'); return $this->belongsTo(config('auth.providers.'. $senderModel .'.model'));

@brandonferens
Copy link
Member

@nenads thanks for your question. It seems like what you are wanting to do is use a different model for the sender than what is set as your base auth user model, correct?

@nenads
Copy link
Author

nenads commented Dec 20, 2019 via email

@brandonferens
Copy link
Member

We are working on a fix for this and may have it out next week, but as it is Christmas...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants