Menu

## AdmissionUser

AdmissionUser.php : 25

##### Tags

class

  trait Trait for RegisterUser Processes

### Table of Contents

#### Methods

CreateStudent() : User
  Create a new student with profile, academics, and optional fee payment.
CreateStudentFather() : User
  Create or link a father profile to a student.
CreateStudentMother() : User
  Create or link a mother profile to a student.

### Methods

#### CreateStudent()

AdmissionUser.php : 38

Create a new student with profile, academics, and optional fee payment.

`public CreateStudent(object $data, int $usergroup_id, int $standardLink_id, string $path, mixed $fee, User $admin) : User`

##### Parameters

$data : object

  Request payload containing student details

$usergroup_id : int

  User group ID for the student

$standardLink_id : int

  Standard link to associate

$path : string

  Avatar path if provided

$fee : mixed

  Fee model or data required for payment

$admin : User

  Admin performing the operation

##### Return values

User —

Newly created student user

#### CreateStudentFather()

AdmissionUser.php : 225

Create or link a father profile to a student.

`public CreateStudentFather(int|null $student_id, object $data, int $usergroup_id) : User`

##### Parameters

$student_id : int|null

  Student identifier to link (optional)

$data : object

  Request payload containing father details

$usergroup_id : int

  User group ID for parent role

##### Return values

User —

Newly created father user

#### CreateStudentMother()

AdmissionUser.php : 310

Create or link a mother profile to a student.

`public CreateStudentMother(int|null $student_id, object $data, int $usergroup_id) : User`

##### Parameters

$student_id : int|null

  Student identifier to link (optional)

$data : object

  Request payload containing mother details

$usergroup_id : int

  User group ID for parent role

##### Return values

User —

Newly created mother user

## Search results