Menu

## PayrollTemplate extends Model
in package
uses SoftDeletes, HasFactory

PayrollTemplate.php : 30

Class PayrollTemplate

Model for managing payroll templates.

##### Tags

mixin

### Table of Contents

#### Properties

$created_at : DateTime
$created_by : int
$deleted_at : DateTime
$id : int
$name : string
$payrollitems : Collection|array<string|int, TemplateItem>
$salaries : Collection|array<string|int, Salary>
$school_id : int
$status : int
$updated_at : DateTime
$user : User
$fillable : mixed

#### Methods

payrollitems() : HasMany
  Get the payroll items in this template.
salaries() : HasMany
  Get salaries using this template.
user() : BelongsTo
  Get the user who created this template.

### Properties

#### $created_at

PayrollTemplate.php : 0
`public DateTime $created_at`

#### $created_by

PayrollTemplate.php : 0
`public int $created_by`

#### $deleted_at

PayrollTemplate.php : 0
`public DateTime $deleted_at`

#### $id

PayrollTemplate.php : 0
`public int $id`

#### $name

PayrollTemplate.php : 0
`public string $name`

#### $payrollitems read-only

PayrollTemplate.php : 0
`public Collection|array<string|int, TemplateItem> $payrollitems`

#### $salaries read-only

PayrollTemplate.php : 0
`public Collection|array<string|int, Salary> $salaries`

#### $school_id

PayrollTemplate.php : 0
`public int $school_id`

#### $status

PayrollTemplate.php : 0
`public int $status`

#### $updated_at

PayrollTemplate.php : 0
`public DateTime $updated_at`

#### $user read-only

PayrollTemplate.php : 0
`public User $user`

#### $fillable

PayrollTemplate.php : 36
`protected mixed $fillable = ['school_id', 'name', 'status', 'created_by']`

### Methods

#### payrollitems()

PayrollTemplate.php : 53

Get the payroll items in this template.

`public payrollitems() : HasMany`

##### Return values

HasMany

#### salaries()

PayrollTemplate.php : 63

Get salaries using this template.

`public salaries() : HasMany`

##### Return values

HasMany

#### user()

PayrollTemplate.php : 43

Get the user who created this template.

`public user() : BelongsTo`

##### Return values

BelongsTo

## Search results