class RegisterController extendsController

Traits

RegistersUsers
AuthorizesRequests
ValidatesRequests

Properties

protectedstring $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.

bool
isAdminConfirmationEnabled()

Determines if the user registration confirmation by admins is enabled.

mixed
registered(Request$request,mixed$user)

The user has been registered.

Details

inControllerat line21
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 line48
void __construct()

Create a new controller instance.

Return Value

void

at line59
protectedValidator validator(array$data)

Get a validator for an incoming registration request.

Parameters

array $data

Return Value

Validator

at line90
protectedUser create(array$data)

Create a new user instance after a valid registration.

Parameters

array $data

Return Value

User

at line114
Response showRegistrationForm()

Show the application registration form.

Return Value

Response

at line129
Response register(Request$request)

Handle a registration request for the application.

Parameters

Request $request

Return Value

Response

at line143
protectedbool isRegistrationDisabled()

Determines if the user registration mechansim is disabled.

Return Value

bool

at line153
protectedbool isAdminConfirmationEnabled()

Determines if the user registration confirmation by admins is enabled.

Return Value

bool

at line165
protectedmixed registered(Request$request,mixed$user)

The user has been registered.

Parameters

Request $request
mixed $user

Return Value

mixed