class RegisterController extends Controller

Traits

RegistersUsers
AuthorizesRequests
ValidatesRequests

Properties

protected string $redirectTo Where to redirect users after login / registration.

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

void
__construct()

Create a new controller instance.

Validator
validator(array $data)

Get a validator for an incoming registration request.

create(array $data)

Create a new user instance after a valid registration.

Response
showRegistrationForm()

Show the application registration form.

Response
register(Request $request)

Handle a registration request for the application.

bool
isRegistrationDisabled()

Determines if the user registration mechansim is disabled.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

at line 43
void __construct()

Create a new controller instance.

Return Value

void

at line 54
protected Validator validator(array $data)

Get a validator for an incoming registration request.

Parameters

array $data

Return Value

Validator

at line 70
protected User create(array $data)

Create a new user instance after a valid registration.

Parameters

array $data

Return Value

User

at line 88
Response showRegistrationForm()

Show the application registration form.

Return Value

Response

at line 103
Response register(Request $request)

Handle a registration request for the application.

Parameters

Request $request

Return Value

Response

at line 117
protected bool isRegistrationDisabled()

Determines if the user registration mechansim is disabled.

Return Value

bool