404labfr / laravel-impersonate

Laravel Impersonate is a plugin that allows you to authenticate as your users.
https://marceau.casals.fr
2k stars 202 forks source link

Call to undefined method App\Models\User::impersonate() #178

Closed magarrent closed 1 year ago

magarrent commented 1 year ago

Hey there!

Maybe there is something missing in the documentation? I have to add use Impersonate; in my User model to use ->impersonate() method.

Using Laravel 9

drbyte commented 1 year ago

Do you mean like this?

Screen Shot 2023-03-30 at 4 39 26 PM
magarrent commented 1 year ago

Do you mean like this? Screen Shot 2023-03-30 at 4 39 26 PM

Lol! I'm officially blind hahhah Sorry mate