laravel-enso/impersonate

User impersonation dependency for Laravel Enso
60,058 8
Install
composer require laravel-enso/impersonate
Latest Version:3.6.4
License:MIT
Last Updated:Apr 23, 2026
Links: GitHub  ·  Packagist
Maintainer: aocneanu

Impersonate

License Stable Downloads PHP Issues Merge Requests

Description

Impersonate adds Enso user impersonation routes, middleware, and frontend boot state.

The package exposes start and stop impersonation endpoints, registers the impersonate middleware alias, and publishes an Impersonating state provider so the frontend can reflect the current session mode.

It is a focused authentication-adjacent package, not a full access-management system on its own.

Installation

Install the package:

composer require laravel-enso/impersonate

Run the package migrations:

php artisan migrate

Features

  • Start and stop impersonation endpoints.
  • Dedicated impersonation middleware alias.
  • Frontend state provider for current impersonation status.
  • Authorization provider wiring through the package service providers.

Usage

The package mounts:

route('core.impersonate.start', ['user' => $user]);
route('core.impersonate.stop');

API

HTTP routes

  • GET api/core/impersonate/{user}
  • GET api/core/impersonate/stop

Middleware

  • impersonate

Depends On

Required Enso packages:

Contributions

are welcome. Pull requests are great, but issues are good too.

Thank you to all the people who already contributed to Enso!

Related Packages

laravel-enso/core

Main requirement & dependency aggregator for Laravel Enso

65,642 34
laravel-enso/charts

Server-side data builder for Chart.js, with a VueJS component for the frontend.

63,097 17
laravel-enso/helpers

Helper classes dependency for Laravel Enso

103,493 8
rickycezar/laravel-jwt-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users...

126,818 24
lab404/laravel-impersonate

Laravel Impersonate is a plugin that allows to you to authenticate as your users...

19,094,858 2,336