PHP code example of mnshankar / laravel-shib-auth

1. Go to this page and download the library: Download mnshankar/laravel-shib-auth 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/ */

    

mnshankar / laravel-shib-auth example snippets


'mnshankar\Shib\ShibAuthServiceProvider',

    function __construct()
    {
        $this->middleware('shib');
    }
    

   Route::get('my/page', ['middleware' => 'shib', function()
   {
       //
   }]);
   

   Route::get('/', function () {
       //
   })->middleware(['shib']);
   
bash
'shib'=>'mnshankar\Shib\Middleware\ShibAuth',
bash
php artisan vendor:publish --provider="mnshankar\Shib\ShibAuthServiceProvider"