Skip to main content

Endpoint

Middleware: guest — only accessible when the user is not already authenticated. Authenticated users will be redirected away.

Request

Parameters

string
required
The user’s display name. Maximum 255 characters.
string
required
The user’s email address. Must be a valid email, lowercase, unique across all registered accounts, and no longer than 255 characters.
string
required
The user’s chosen password. Must satisfy Laravel’s default password rules: minimum 8 characters. Must match password_confirmation.
string
required
Confirmation of the password. Must be identical to the password field.

Response

This endpoint does not return a JSON body. It responds with HTTP redirects. On success, the user is automatically logged in. A Set-Cookie header is returned with the Laravel session cookie for immediate use in subsequent requests. A Registered event is fired, which can trigger email verification depending on the application configuration.

Example

Validation Rules

The following rules are enforced server-side in RegisteredUserController::store:

Validation Errors

When calling this endpoint from a JavaScript client (with Accept: application/json), a 422 Unprocessable Entity response is returned on failure:
Common validation error fields: