PHP code example of rs / auth-medikey
1. Go to this page and download the library: Download rs/auth-medikey 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/ */
rs / auth-medikey example snippets
'medikey' => [
'site_id' => env('MEDIKEY_SITE_ID','5')
]
use RedSnapper\Medikey\MedikeyProvider;
Route::get('/auth/redirect', function (MedikeyProvider $provider) {
return $provider->redirect();
});
Route::get('/auth/callback', function (MedikeyProvider $provider) {
$user = $provider->user();
});