Follow Symfony's documentation to configure your security.
If you are using a standard Symfony Form Login you can use our template for that as following:
LoginController.php
#[Route('/login', name: 'app_login')]
public function login(AuthenticationUtils $authenticationUtils): Response
{
return $this->render('[@araiseCrud](https://github.com/araiseCrud)/Login/login.html.twig', [
'error' => $authenticationUtils->getLastAuthenticationError(),
'last_username' => $authenticationUtils->getLastUsername(),
]);
}
You can customize the login.html.twig template. The template extends from the base.html.twig and provides additionally the following blocks and message keys:
login_path - The path to the login route
login.title - The title of the login page
login.username - The label of the username field
login.password - The label of the password field
login.submit - The label of the submit button
How can I help you explore Laravel packages today?