KABBOUCHI / nova-impersonate

A Laravel Nova field allows you to authenticate as your users.
MIT License
232 stars 37 forks source link

Difference between native Impersonate Nova4 feature and this package? #112

Open scramatte opened 1 year ago

scramatte commented 1 year ago

Hello,

Can you told me difference between native Impersonate Nova4 feature and this package?

Regards

KABBOUCHI commented 1 year ago

The difference between the native Impersonate feature in Nova 4 and the nova-impersonate package is that the package existed before Nova 4 and the built-in feature is now available in Nova 4. It's recommended to use the built-in Impersonate feature in Nova 4 for new projects, but the nova-impersonate package can be used if you're using an older version of Nova.

scramatte commented 1 year ago

Thank you for the reply. I prefer your buttons with spy icon instead drop down list. But I believe that Nova doesn't let change it...

eugenefvdm commented 1 year ago

Yeah I agree. George's package is much nicer with the quick and easy reverse impersonate icon. However if you're using Jetstream combined with Nova a newer version of some or another package is causing problems with reverse impersonate. The problem is somewhere in the issues list of this package but also discussed at length here:

https://github.com/404labfr/laravel-impersonate/issues/154

I'm not clever enough to understand exactly what's going wrong but it's something to do with the different authentication guards between Nova and Jetstream, sanctum and web. Some fixes are mentioned but the issue is already 19 pages long so getting lost completely.