Rudra-Auth | API
composer require rudra/auth
[
'admin' => 0,
'editor' => 1,
'moderator' => 2,
'user' => 3
]
use Rudra\Auth\AuthFacade as Auth;
$user = [
"email" => "user@email.com",
"password" => "password"
];
Auth::authentication($user[0], $user[1], "admin/dashboard", "Укажите верные данные");
Auth::exitAuthenticationSession();
Auth::restoreSessionIfSetRememberMe("login");