1. Go to this page and download the library: Download nonoesp/authenticate 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/ */
nonoesp / authenticate example snippets
protected $middleware = [
/// nonoesp/authenticate
// TODO - verify we need these first two here
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\Nonoesp\Authenticate\Middleware\RememberLogin::class,
/// ...
];
protected $routeMiddleware = [
/// nonoesp/authenticate
'login' => \Nonoesp\Authenticate\Middleware\RequireLogin::class,
/// ...
];