Menu

## LessonPlanApproval extends Model
in package
uses SoftDeletes

LessonPlanApproval.php : 28

Class LessonPlanApproval

Model for managing lesson plan approvals.

##### Tags

mixin

### Table of Contents

#### Properties

$approved_at : DateTime
$approved_by : int
$comments : string|null
$created_at : DateTime
$deleted_at : DateTime
$id : int
$lesson_plan_id : int
$lessonPlan : LessonPlan
$updated_at : DateTime
$user : 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

lessonPlan() : BelongsTo
  Get the lesson plan being approved.
user() : BelongsTo
  Get the user who approved this lesson plan.

### Properties

#### $approved_at

LessonPlanApproval.php : 0
`public DateTime $approved_at`

#### $approved_by

LessonPlanApproval.php : 0
`public int $approved_by`

#### $comments

LessonPlanApproval.php : 0
`public string|null $comments`

#### $created_at

LessonPlanApproval.php : 0
`public DateTime $created_at`

#### $deleted_at

LessonPlanApproval.php : 0
`public DateTime $deleted_at`

#### $id

LessonPlanApproval.php : 0
`public int $id`

#### $lesson_plan_id

LessonPlanApproval.php : 0
`public int $lesson_plan_id`

#### $lessonPlan read-only

LessonPlanApproval.php : 0
`public LessonPlan $lessonPlan`

#### $updated_at

LessonPlanApproval.php : 0
`public DateTime $updated_at`

#### $user read-only

LessonPlanApproval.php : 0
`public User $user`

#### $dates

LessonPlanApproval.php : 54

The attributes that should be mutated to dates.

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

#### $fillable

LessonPlanApproval.php : 45

The attributes that are mass assignable.

`protected array<string|int, mixed> $fillable = ['lesson_plan_id', 'comments', 'approved_by', 'approved_at']`

#### $table

LessonPlanApproval.php : 38

The table associated with the model.

`protected string $table = 'lesson_plan_approvals'`

### Methods

#### lessonPlan()

LessonPlanApproval.php : 61

Get the lesson plan being approved.

`public lessonPlan() : BelongsTo`

##### Return values

BelongsTo

#### user()

LessonPlanApproval.php : 71

Get the user who approved this lesson plan.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results