alqudiry / iam
Create iam login
Installs: 3 533
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
README
Installation
composer require alqudiry/iam
Publish
php artisan vendor:publish --provider="Alqudiry\Iam\IAMServiceProvider"
Configuration
- Update your "auth.php" to use IAMUser class instead of User class:
- Update credentials of IAM Site in config/iam.php
- Update your "routes\web.php" to include this routes:
Route::group(['middleware' => ['guest']], function () { Route::get('/login', [\App\Http\Controllers\IAMController::class, 'login'])->name('login'); Route::get('/validate-login', [\App\Http\Controllers\IAMController::class, 'validateLogin'])->name('validateLogin'); }); Route::group(['middleware' => ['auth']], function () { Route::get('/logout', [\App\Http\Controllers\IAMController::class, 'logout'])->name('logout'); });