Authentication
Login
A login page for each panel, limited to 5 tries a minute, with a form you can swap.
$panel->login();


Without it, guests are refused. Auth is built in, per panel, on Laravel's own Auth, Password and RateLimiter, so Fortify isn't needed.
Changing the form
Extend LoginForm, and pass the class to login().
use Xelqun\Panels\Auth\LoginForm;
class CustomLoginForm extends LoginForm
{
public function schema(): array
{
[$email, $password, $remember] = parent::schema();
return [$email->default('demo@example.com'), $password, $remember];
}
}
$panel->login(CustomLoginForm::class);
The demo does just this to prefill its login. See it.