PHP code example of cyrildewit / laravel-silent-authentication
1. Go to this page and download the library: Download cyrildewit/laravel-silent-authentication 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/ */
cyrildewit / laravel-silent-authentication example snippets
// config/app.php
'providers' => [
// ...
CyrildeWit\LaravelSilentAuthentication\SilentAuthenticationServiceProvider::class,
];
use Illuminate\Auth\SessionGuard as BaseSessionGuard;
use CyrildeWit\LaravelSilentAuthentication\Guards\Traits\SilentAuthentication;
class SessionGuard extends BaseSessionGuard
{
use SilentAuthentication;
}
winbatch
php artisan vendor:publish --provider="CyrildeWit\LaravelSilentAuthentication\SilentAuthenticationServiceProvider" --tag="config"