PHP code example of acarlosos / session-checker
1. Go to this page and download the library: Download acarlosos/session-checker 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/ */
acarlosos / session-checker example snippets
/**
* Handle an incoming authentication request.
*/
public function store(LoginRequest $request): RedirectResponse
{
$request->authenticate();
SessionChecker::check(); //Aqui acontece a validação
$request->session()->regenerate();
return redirect()->intended(RouteServiceProvider::HOME);
}
$ php artisan session:table
$ php artisan migrate