PHP code example of alqudiry / iam

1. Go to this page and download the library: Download alqudiry/iam library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alqudiry / iam example snippets


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');
});
bash
php artisan vendor:publish --provider="Alqudiry\Iam\IAMServiceProvider"