Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Impersonate

LicenseStableDownloadsPHPIssuesMerge 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:

  • laravel-enso/core ↗
  • laravel-enso/dynamic-methods ↗
  • laravel-enso/migrator ↗
  • laravel-enso/users ↗

Contributions

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

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

Edit this page on GitHub
Last Updated: 4/20/2026, 1:48:58 PM
Prev
Image Transformer
Next
Interactions