matthewbdaly/laravel-impersonator
Composer 安装命令:
composer require matthewbdaly/laravel-impersonator
包简介
Impersonate other users to assist in resolving issues
README 文档
README
Impersonate other users to assist in resolving issues
Installation
Run the following command to install the package:
composer require matthewbdaly/laravel-impersonator
Then just include this in your app/Http/Kernel.php in the appropriate place where you want to import the middleware:
\Matthewbdaly\LaravelImpersonator\Http\Middleware\Impersonator::class
You can apply it globally, or only to specific routes as you wish. You will also need to add the trait Matthewbdaly\LaravelImpersonator\Eloquent\Traits\CanImpersonate to your user model to add these methods:
startImpersonating($id)- start impersonating user$idstopImpersonating()- stop impersonatingisImpersonating()- Is user impersonating or not?
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-11-19