Settings for user registration and login via email and password.
HandleInertiaRequests.php
, under share
method and update password rules for your app.
By default, for production environment, password should be at least 8 characters long with at least one uppercase letter, one lowercase letter, one number, one symbol, and not compromised in a public password data breach leak. You can find all the available rules here.
For all other environments (development, testing, staging) it should be only 4 characters long without any other restrictions.
routes/web.php
and search for verified
. You will see that settings, checkout and subscription routes are protected from unverified users. Add your new routes under same middleware to protect them.
MustVerifyEmail
contract from User
model. Everything else can stay the same since verified
middleware will always pass in this case, but it’s still recommended to remove the middleware from your routes.
resources/js/Pages/Auth/Login.vue
resources/js/Pages/Auth/Register.vue
resources/js/Pages/Auth/VerifyEmail.vue
resources/js/Pages/Auth/ForgotPassword.vue
resources/js/Pages/Auth/ResetPassword.vue
resources/js/Pages/Auth/Partials/Wrapper.vue
where you can customize the layout.
.env
file and set AUTH_FORM_LAYOUT
to centered
, left
or right
.centered
.
Centered layout displays just the form in the center of the page.
Left and right layout displays the form on the left or right side, along with some content and background image.
By default, placeholder image is used as the background image. You can easily update the image, remove it, change background color, add background gradient, etc. Just go to the Wrapper.vue
component and search for bg-
.
header
property. Header for login and register forms can be updated in AuthenticatedSessionController
and RegisteredUserController
controllers under method header()
.
You can pass an empty array if you don’t want to display header and description, or you can remove the description and display the title only.
Headers for other authentication forms are passed as header
property in their controllers.
AUTH_FORM_SHOW_LABELS
to false
in your .env
file.
AUTH_WITH_NAME_FIELD
to false
in your .env
file.
toggleable
to Input
component.
AUTH_FORM_SOCIAL_PROVIDERS_POSITION
to top
in your .env
file.
resources/js/Components/MainMenu.vue
, and update buttons:
SheetFooter
with this: