PHP code example of wangyongdong / laravelcas
1. Go to this page and download the library: Download wangyongdong/laravelcas 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/ */
wangyongdong / laravelcas example snippets
'LaravelCasMiddleware' => \Wangyongdong\LaravelCas\Middleware\CASAuth::class,
Route::group(['middleware' => ['LaravelCasMiddleware']], function () {
Route::get('/login/auth', function (Illuminate\Http\Request $request) {
$user = $request->userid;
dd($user);
});
});
protected $except = [
'/'
];