Menu

## RegisterController extends Controller
in package
uses AuthenticationProcess, RegistersUsers

RegisterController.php : 30

### Table of Contents

#### Properties

$redirectTo : string
  Where to redirect users after registration.

#### Methods

__construct() : void
  Create a new controller instance.
checkAuthentication() : int
  Check whether a registration OTP for the user has been verified.
createAuthentication() : void
  Create an OTP authentication record for a user and send the OTP.
register() : mixed
showRegistrationForm() : mixed
create() : User
  Create a new school and user instance after a valid registration.
guard() : mixed
createAcademicYear() : mixed
createSchool() : mixed
createSchoolAdmin() : mixed
createSchoolDetails() : mixed
createSchoolSubscription() : mixed
createUserProfile() : mixed
sendAdminNotifyMail() : mixed
sendEmailVerification() : mixed

### Properties

#### $redirectTo

RegisterController.php : 50

Where to redirect users after registration.

`protected string $redirectTo = '/admin/dashboard'`

### Methods

#### __construct()

RegisterController.php : 57

Create a new controller instance.

`public __construct() : void`

#### checkAuthentication()

AuthenticationProcess.php : 73

Check whether a registration OTP for the user has been verified.

`public checkAuthentication(int $user_id) : int`

##### Parameters

$user_id : int

  User identifier

##### Return values

int —

Status flag from authentication record (0 or 1)

#### createAuthentication()

AuthenticationProcess.php : 28

Create an OTP authentication record for a user and send the OTP.

`public createAuthentication(User $user, Request|string $request, string $type) : void`

##### Parameters

$user : User

  Target user

$request : Request|string

  Request object or empty string when unavailable

$type : string

  Authentication type (e.g., register, login)

#### register()

RegisterController.php : 113
`public register(RegisterRequest $request) : mixed`

##### Parameters

$request : RegisterRequest

#### showRegistrationForm()

RegisterController.php : 108
`public showRegistrationForm() : mixed`

#### create()

RegisterController.php : 68

Create a new school and user instance after a valid registration.

`protected create(array<string|int, mixed> $data) : User`

##### Parameters

$data : array<string|int, mixed>

##### Return values

User

#### guard()

RegisterController.php : 130
`protected guard() : mixed`

#### createAcademicYear()

RegisterController.php : 253
`private createAcademicYear(mixed $school) : mixed`

##### Parameters

$school : mixed

#### createSchool()

RegisterController.php : 135
`private createSchool(mixed $data) : mixed`

##### Parameters

$data : mixed

#### createSchoolAdmin()

RegisterController.php : 203
`private createSchoolAdmin(mixed $school, mixed $data) : mixed`

##### Parameters

$school : mixed
$data : mixed

#### createSchoolDetails()

RegisterController.php : 230
`private createSchoolDetails(mixed $school) : mixed`

##### Parameters

$school : mixed

#### createSchoolSubscription()

RegisterController.php : 181
`private createSchoolSubscription(User $user) : mixed`

##### Parameters

$user : User

#### createUserProfile()

RegisterController.php : 160
`private createUserProfile(User $user) : mixed`

##### Parameters

$user : User

#### sendAdminNotifyMail()

RegisterController.php : 293
`private sendAdminNotifyMail(User $user) : mixed`

##### Parameters

$user : User

#### sendEmailVerification()

RegisterController.php : 275
`private sendEmailVerification(User $user) : mixed`

##### Parameters

$user : User

## Search results