1. Go to this page and download the library: Download rs/auth-doccheck 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-doccheck example snippets
use RedSnapper\DocCheck\DocCheckProvider;
Route::get('/login', function (DocCheckProvider $provider) {
$provider->language("de")->template("login_s");
return view('login',['url'=>$provider->iframeUrl()])
});
use RedSnapper\DocCheck\DocCheckProvider;
Route::get('/login', function (DocCheckProvider $provider) {
return $provider->iframe();
});
use RedSnapper\DocCheck\DocCheckProvider;
Route::get('/auth/callback', function (DocCheckProvider $provider) {
$user = $provider->user();
});
bash
php artisan vendor:publish --tag=doccheck
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.