PHP code example of peppertech / larakeycloak
1. Go to this page and download the library: Download peppertech/larakeycloak 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/ */
peppertech / larakeycloak example snippets
php artisan vendor:publish --tag="larakeycloak"
protected function redirectTo($request)
{
if (! Auth::check()) {
return route('auth-redirect');
}
}
public function boot()
{
$this->registerPolicies();
Gate::define('view-admin', [SampleAdminPolicy::class, 'view']);
// define more Gates here
}