-
Notifications
You must be signed in to change notification settings - Fork 37
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
Arg 1 passed to SessionGuard::quietLogin() must implement interface Authenticatable, instance of Collection given #17
Comments
please change it to |
Same result unfortunately
…On Fri, 19 Oct 2018 at 17:22, Georges KABBOUCHI ***@***.***> wrote:
please change it to Impersonate::make($this)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AChn_bff0uVN56iOAEpd-VN-IDUTz_CXks5umfxJgaJpZM4XwpiQ>
.
|
please make sure ur custom user model has Authenticatable interface https://github.com/laravel/laravel/blob/05e54193ba97719983a87e1944d436e8423cc1aa/app/User.php#L7-L9 |
It does extend Authenticatable, but it seems that at some point a collection is being passed instead of the user. I cannot see where. |
can you debug this line?
check the response if |
I've narrowed this down to be likely a bug on my end. It seems that when I run Will do some debugging here but I'm confident this isn't an issue with nova-impersonate. |
For anyone else who finds this, I had the same issue and narrowed it down. In my case it was due to explicitly binding the route
Removing this binding fixes the issue, but I'm not sure what a solution would be to allow the explicit binding. |
@kendugu maybe we can rename |
This occurs after I attempt to impersonate a user (either through the index view or in details view).
The collection given appears to be the user I'm trying to impersonate, and my own user model.
I'm wondering if this is a conflict or something? All I've done is require through composer, install, then add
Impersonate::make($this->id)
to my Nova User model.The text was updated successfully, but these errors were encountered: