{"repo":"KABBOUCHI/nova-impersonate","free":true,"listed":false,"github":"https://github.com/KABBOUCHI/nova-impersonate","clone":"git clone https://github.com/KABBOUCHI/nova-impersonate.git","description":"A Laravel Nova field allows you to authenticate as your users.","language":"PHP","stars":234,"topics":["laravel","nova","impersonate"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"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) By default name field is used for when displaying what user is impersonated at a moment. You need to add the method impersonateName() 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 Credits - Georges KABBOUCHI The MIT License (MIT). Please see License File for more information.","default_branch":null,"files":null,"tree":[],"storefront":"/r/KABBOUCHI","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KABBOUCHI/nova-impersonate/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}