visanduma/nova-actor is a Laravel package for simple user switch for development environment.
It currently has 4 GitHub stars and 1.012 downloads on Packagist (latest version 1.0.3).
Install it with composer require visanduma/nova-actor.
Discover more Laravel packages by visanduma
or browse all Laravel packages to compare alternatives.
Last updated
The Simple User switch for Laravel Nova dashboard


You can install the package via composer:
composer require visanduma/nova-actor
You can publish the config file with:
php artisan vendor:publish --tag="nova-actor-config"
This is the contents of the published config file:
return [
// auth user model
'model' => \App\Models\User::class,
// username column of user table
'username_column' => 'email',
// allowed environments
'environments' => ['local'],
];
nova-actor.php config file with your USER Model & column detailsnova config file// config/nova.php
'middleware' => [
'web',
HandleInertiaRequests::class,
DispatchServingNovaEvent::class,
BootTools::class,
...
\Visanduma\NovaActor\Http\Middlewares\NovaActorTheatre::class, // <-- Add this line
],
Create json file called actors.json in root level of the project. then add any user details as following structure.
Remember to add the actors.json file to .gitignore
[
{
"name": "Mallory Olsen",
"username": "[email protected]"
},
{
"name": "Super Admin",
"username": "[email protected]",
"redirect_to": "/nova/dashboards/main", // optional
"guard" : "admin" // optional
}
]
if you want to customize the Actor dialog content, you can publish the view file and update it.
Publish the view file with:
php artisan vendor:publish --tag="nova-actor-views"
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.