laravins / remote-auth-client
远程身份验证客户端
dev-master
2023-01-29 21:13 UTC
This package is auto-updated.
Last update: 2024-09-29 06:26:00 UTC
README
介绍
此软件包允许您远程更新用户密码和删除用户。
使用LaravinsRemoteAuth
安装
composer require laravins/remote-auth-client
这将安装包到您的项目内部。
配置文件
位于config//remote-auth.php
控制器
位于Http/Controllers/RemoteAuthClient/RemoteAuthController.php
中间件
位于Htpp\Middlewares/RemoteAuthManager
发布文件
php artisan vendor:publish --tag=remote-auth-client --ansi --force
//.env
REMOTE_AUTH_PASS=secretpass
配置文件
此配置文件将允许您通过 https://my-website.com/
端点远程管理用户。
<?php return [ // Prefix for generated routes 'route_prefix' => 'api/remote-auth', //Routes to enable/disable 'routes' => [ 'list' => true, 'insert' => true, 'update' => true, 'delete' => true, 'down' => true, 'up' => true, ], // password used to authenticate requests 'password' => env('REMOTE_AUTH_PASS', null) ];
谢谢 ✌️