PHPackages                             rhmdnj/laravel-impersonate - 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. rhmdnj/laravel-impersonate

ActiveLibrary

rhmdnj/laravel-impersonate
==========================

Login as a different user quickly

v2.0.6(4y ago)09MITPHPPHP ^7.4|^8.0

Since Aug 3Pushed 4y agoCompare

[ Source](https://github.com/RHMDNJ/LaraPersonate)[ Packagist](https://packagist.org/packages/rhmdnj/laravel-impersonate)[ Fund](https://ko-fi.com/SupianIDz)[ RSS](/packages/rhmdnj-laravel-impersonate/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependencies (2)Versions (16)Used By (0)

 [![Demo](demo.gif)](demo.gif)

 [![Tests](https://camo.githubusercontent.com/fcaf75ad8e7509c55c6f8a5ee7fcc02f5cdda2893f4f0a483ccee15acb541d60/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f4f63746f707949442f4c617261506572736f6e6174652f52756e253230556e697425323054657374696e673f7374796c653d666f722d7468652d6261646765266c6162656c3d7465737473)](https://camo.githubusercontent.com/fcaf75ad8e7509c55c6f8a5ee7fcc02f5cdda2893f4f0a483ccee15acb541d60/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f4f63746f707949442f4c617261506572736f6e6174652f52756e253230556e697425323054657374696e673f7374796c653d666f722d7468652d6261646765266c6162656c3d7465737473) [![Version](https://camo.githubusercontent.com/290cc4baf398b6c874d633045aba56d709bf901d9ad310ae8129f211937ebbae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f63746f707969642f6c61726176656c2d696d706572736f6e6174652e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/290cc4baf398b6c874d633045aba56d709bf901d9ad310ae8129f211937ebbae/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6f63746f707969642f6c61726176656c2d696d706572736f6e6174652e7376673f7374796c653d666f722d7468652d6261646765) [![Downloads](https://camo.githubusercontent.com/7f07985e56f1aa1829258a5b57664b459575cb820df7a5dbd11b88279e6a749f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f63746f707969642f6c61726176656c2d696d706572736f6e6174652e7376673f7374796c653d666f722d7468652d626164676526636f6c6f723d463238443141)](https://camo.githubusercontent.com/7f07985e56f1aa1829258a5b57664b459575cb820df7a5dbd11b88279e6a749f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6f63746f707969642f6c61726176656c2d696d706572736f6e6174652e7376673f7374796c653d666f722d7468652d626164676526636f6c6f723d463238443141) [![License](https://camo.githubusercontent.com/dea71c3b7b79e68c6c0012ea6ce0016d1c750404bbd856492466f5ac14f38076/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f63746f707969642f6c61726176656c2d696d706572736f6e6174652e7376673f7374796c653d666f722d7468652d6261646765)](https://camo.githubusercontent.com/dea71c3b7b79e68c6c0012ea6ce0016d1c750404bbd856492466f5ac14f38076/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6f63746f707969642f6c61726176656c2d696d706572736f6e6174652e7376673f7374796c653d666f722d7468652d6261646765)

Lara Personate
==============

[](#lara-personate)

Is a user impersonate for the Laravel framework. This package makes it easier for users who have access rights such as super admin to take over other user accounts.

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

[](#installation)

To install the package, simply follow the steps below.

Install the package using Composer:

```
$ composer require octopyid/laravel-impersonate:^2

$ artisan vendor:publish --provider="Octopy\LaraPersonate\ImpersonateServiceProvider"

```

> Sometimes some users experience the problem of layout after upgrading the package, this can be solved by deleting the `public/vendor/octopyid/impersonate` folder then republish the assets.

Add the trait `Octopy\LaraPersonate\Models\Impersonate` to your **User** model.

```
