laravins / remote-auth-client
Remote auth client
Package info
github.com/Vincentdm31/remote-auth-client
Type:project
pkg:composer/laravins/remote-auth-client
dev-master
2023-01-29 21:13 UTC
This package is auto-updated.
Last update: 2026-03-29 01:01:23 UTC
README
Introduction
This package allows you to update user password and delete user remotely.
Working with LaravinsRemoteAuth
Installation
composer require laravins/remote-auth-client
This will install the package inside your project.
Config filelocated atconfig//remote-auth.phpControllerlocated atHttp/Controllers/RemoteAuthClient/RemoteAuthController.phpMiddlewarelocated atHtpp\Middlewares/RemoteAuthManager
Publish files
php artisan vendor:publish --tag=remote-auth-client --ansi --force
//.env
REMOTE_AUTH_PASS=secretpass
Config file
This config file will allow you to remotely manage your users off https://my-website.com/ endpoint.
<?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) ];
Thanks ✌️