Download the PHP package akawam/authenticate-as-anyone without Composer
On this page you can find all versions of the php package akawam/authenticate-as-anyone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download akawam/authenticate-as-anyone
More information about akawam/authenticate-as-anyone
Files in akawam/authenticate-as-anyone
Package authenticate-as-anyone
Short Description Package that allows you to authenticate as anyone, see readme for more informations
License MIT
Informations about the package authenticate-as-anyone
Authenticate as anyone
The purpose of this package is to allow restricted users to imitate another user account.
It is usefull when you want to see what exactly is happening on a certain user account.
Installation
You can install the package via composer:
You can publish the view files with:
You can publish the config file with:
This is the contents of the published config file:
Usage
-
Include the "logged as" ribbon
- Access module through url/route : http://yourdomain.com/authenticate-as-anyone
- Imitate a user
Adding your own event
When connecting as a user, an event is triggered (UserIsSwitching)
If you want to add some magic to your authentication (like adding some sessions data) you can do so by adding your own event listener like so :
Credits
License
The MIT License (MIT). Please see License File for more informations.
All versions of authenticate-as-anyone with dependencies
illuminate/contracts Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0
illuminate/support Version ^6.0 || ^7.0 || ^8.0 || ^9.0 || ^10.0