Download the PHP package codicastudio/impersonate-manager without Composer
On this page you can find all versions of the php package codicastudio/impersonate-manager. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download codicastudio/impersonate-manager
More information about codicastudio/impersonate-manager
Files in codicastudio/impersonate-manager
Package impersonate-manager
Short Description A random Codica Studio package.
License MIT
Homepage https://github.com/codicastudio/impersonate-manager
Informations about the package impersonate-manager
Nova Impersonate Field
This field allows you to authenticate as your users.
Behind the scenes 404labfr/laravel-impersonate is used.
Installation
You can install the package in to a Laravel app that uses Nova via composer:
Usage
Add Impersonate::make($this)
field in App\Nova\User.php
Advanced Usage
By default all users can impersonate an user.
You need to add the method canImpersonate()
to your user model:
By default all users can be impersonated.
You need to add the method canBeImpersonated()
to your user model to extend this behavior:
Please make sure to pass instance Model or Nova Resource Impersonate::make($this)
Impersonate::make($this->resource)
Events
You can hook onto the underlying package events
May be userful for things like setting session data
Lab404\Impersonate\Events\TakeImpersonation
Lab404\Impersonate\Events\LeaveImpersonation
You can optionally publish the config file with:
This is the default content of the config file published at config/nova-impersonate.php
:
You can publish and customize the nova-impersonate::reverse
view
The MIT License (MIT). Please see License File for more information.