Menu

## HomeworkApproval extends Model
in package
uses SoftDeletes, HasFactory

HomeworkApproval.php : 29

Class HomeworkApproval

Model for managing homework approval workflow.

##### Tags

mixin

### Table of Contents

#### Properties

$approved_at : DateTime
$approved_by : int
$approvedBy : User
$comments : string
$created_at : DateTime
$deleted_at : DateTime
$homework : Homework
$homework_id : int
$id : int
$status : int
$updated_at : DateTime
$dates : mixed
$fillable : mixed
$table : mixed

#### Methods

approvedBy() : BelongsTo
  Get the user who approved this homework.
homework() : BelongsTo
  Get the homework associated with this approval.

### Properties

#### $approved_at

HomeworkApproval.php : 0
`public DateTime $approved_at`

#### $approved_by

HomeworkApproval.php : 0
`public int $approved_by`

#### $approvedBy read-only

HomeworkApproval.php : 0
`public User $approvedBy`

#### $comments

HomeworkApproval.php : 0
`public string $comments`

#### $created_at

HomeworkApproval.php : 0
`public DateTime $created_at`

#### $deleted_at

HomeworkApproval.php : 0
`public DateTime $deleted_at`

#### $homework read-only

HomeworkApproval.php : 0
`public Homework $homework`

#### $homework_id

HomeworkApproval.php : 0
`public int $homework_id`

#### $id

HomeworkApproval.php : 0
`public int $id`

#### $status

HomeworkApproval.php : 0
`public int $status`

#### $updated_at

HomeworkApproval.php : 0
`public DateTime $updated_at`

#### $dates

HomeworkApproval.php : 40
`protected mixed $dates = ['approved_at', 'deleted_at']`

#### $fillable

HomeworkApproval.php : 36
`protected mixed $fillable = ['homework_id', 'comments', 'status', 'approved_by', 'approved_at']`

#### $table

HomeworkApproval.php : 34
`protected mixed $table = 'homework_approvals'`

### Methods

#### approvedBy()

HomeworkApproval.php : 47

Get the user who approved this homework.

`public approvedBy() : BelongsTo`

##### Return values

BelongsTo

#### homework()

HomeworkApproval.php : 57

Get the homework associated with this approval.

`public homework() : BelongsTo`

##### Return values

BelongsTo

## Search results