PHPackages                             visanduma/nova-actor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. visanduma/nova-actor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

visanduma/nova-actor
====================

Simple user switch for development environment

1.0.3(2y ago)41.0k1MITBladePHP ^8.0

Since Dec 12Pushed 2y agoCompare

[ Source](https://github.com/Visanduma/nova-actor)[ Packagist](https://packagist.org/packages/visanduma/nova-actor)[ Docs](https://github.com/visanduma/nova-actor)[ GitHub Sponsors](https://github.com/Visanduma)[ RSS](/packages/visanduma-nova-actor/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (3)Dependencies (7)Versions (4)Used By (0)

[![](https://github.com/Visanduma/nova-actor/raw/077352d7925a5bd4ebbc7690b649985ddd075ccc/images/nova-actor.png)](https://github.com/Visanduma/nova-actor/blob/077352d7925a5bd4ebbc7690b649985ddd075ccc/images/nova-actor.png)

Nova Actor
==========

[](#nova-actor)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3dd20244b3ec975d7090a3b70cf7ce709698db5269d2c78e2a8023a1562c65f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f766973616e64756d612f6e6f76612d6163746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/visanduma/nova-actor)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/384e55f87cc2e6044c781c8a48ea16a59ebb6cc2ce0f5ff8509920df16e265f0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f766973616e64756d612f6e6f76612d6163746f722f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/visanduma/nova-actor/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/758fdc3112c7a7fb38e816a4c2a78216a867a30a3971561cea09e0c909dc608d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f766973616e64756d612f6e6f76612d6163746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/visanduma/nova-actor)

The Simple User switch for Laravel Nova dashboard

[![screenshot](/images/photo-1.png)](/images/photo-1.png)

[![screenshot](/images/photo-2.png)](/images/photo-2.png)

Installation
------------

[](#installation)

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

];
```

Setup
-----

[](#setup)

- Update the `nova-actor.php` config file with your USER Model &amp; column details
- Register the nova-actor middleware in `nova` config file

```
// config/nova.php

'middleware' => [
        'web',
        HandleInertiaRequests::class,
        DispatchServingNovaEvent::class,
        BootTools::class,
        ...
        \Visanduma\NovaActor\Http\Middlewares\NovaActorTheatre::class, //
