rickyj/nova-stop-impersonation

Stop Nova impersonation from your front-end

Downloads

2

Stars

0

Version

Stop Impersonation for Laravel Nova

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.

Package in action

Installation

Install using Composer:

composer require rickyj/nova-stop-impersonation

Basic usage

This package registers a Blade component that can be added to your application's layout file:

<x-stop-impersonation />

Customization

Package configuration and views can be published via php artisan vendor:publish.

Environments

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',
    ]

Credits

License

The MIT License (MIT). Please see License File for more information.

rickyjohnston

Author

rickyjohnston