Menu

## StudentParentLink extends Model
in package
uses SoftDeletes, HasFactory

StudentParentLink.php : 29

Class StudentParentLink

Model for managing relationships between students and parents.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$deleted_at : DateTime
$id : int
$parent_id : int
$school_id : int
$status : string
$student_id : int
$updated_at : DateTime
$userParent : User
$userStudent : User
$dates : array<string|int, mixed>
  The attributes that should be mutated to dates.
$fillable : array<string|int, mixed>
  The attributes that are mass assignable.
$table : string
  The table associated with the model.

#### Methods

userParent() : BelongsTo
  Get the parent user for this relationship.
userStudent() : BelongsTo
  Get the student user for this relationship.

### Properties

#### $created_at

StudentParentLink.php : 0
`public DateTime $created_at`

#### $deleted_at

StudentParentLink.php : 0
`public DateTime $deleted_at`

#### $id

StudentParentLink.php : 0
`public int $id`

#### $parent_id

StudentParentLink.php : 0
`public int $parent_id`

#### $school_id

StudentParentLink.php : 0
`public int $school_id`

#### $status

StudentParentLink.php : 0
`public string $status`

#### $student_id

StudentParentLink.php : 0
`public int $student_id`

#### $updated_at

StudentParentLink.php : 0
`public DateTime $updated_at`

#### $userParent read-only

StudentParentLink.php : 0
`public User $userParent`

#### $userStudent read-only

StudentParentLink.php : 0
`public User $userStudent`

#### $dates

StudentParentLink.php : 40

The attributes that should be mutated to dates.

`protected array<string|int, mixed> $dates = ['deleted_at']`

#### $fillable

StudentParentLink.php : 54

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['school_id', 'parent_id', 'student_id', 'status']`

#### $table

StudentParentLink.php : 47

The table associated with the model.

`protected string $table = 'student_parent_links'`

### Methods

#### userParent()

StudentParentLink.php : 63

Get the parent user for this relationship.

`public userParent() : BelongsTo`

##### Return values

BelongsTo

#### userStudent()

StudentParentLink.php : 73

Get the student user for this relationship.

`public userStudent() : BelongsTo`

##### Return values

BelongsTo

## Search results