Laravel Nova provides an easy way for you to start impersonating a User in your application. Unfortunately, the only way to stop impersonating and return to your account is via Nova. If the User you're impersonating doesn't have access to Nova, then you need to sign out and reauthenticate.
We can make this easier!
This package contains a Blade component that can be added to any Laravel application to add a quick way to switch back to your User from your application frontend - no need to sign out or return to Nova.
Install using Composer:
composer require rickyj/nova-stop-impersonation
This package registers a Blade component that can be added to your application's layout file:
<x-stop-impersonation />
Package configuration and views can be published via php artisan vendor:publish
.
The environments in which this component appears can be altered via the package configuration. Simply update the environments
array with your desired environment targets:
'environments' => [
'local',
+ 'staging',
+ 'production',
]
The MIT License (MIT). Please see License File for more information.