PHP code example of csi-uksw / laravel-cas
1. Go to this page and download the library: Download csi-uksw/laravel-cas 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/ */
csi-uksw / laravel-cas example snippets
protected $routeMiddleware = [
'auth.cas' => \CSI_UKSW\Laravel\CAS\Http\Middleware\CASAuthMiddleware::class
];
Route::group(['middleware' => 'auth.cas'], function () {
get('cas', function(){
echo 'authorized only';
});
});
php artisan vendor:publish --provider="CSI_UKSW\Laravel\CAS\CASServiceProvider"