PHP code example of revenuefm / ssoguard

1. Go to this page and download the library: Download revenuefm/ssoguard 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/ */

    

revenuefm / ssoguard example snippets



'guards' => [
        'web' => [
            'driver' => 'session',
            'provider' => 'users',
        ],

        'api' => [
            'driver' => 'ssoguard',
            'provider' => 'users',
        ],
    ],

Route::get('my/secure/api-url', 'MyController@index')->middleware('auth:api');

$request->user()
bash
php artisan vendor:publish --tag=ssoguard-config