Menu

## SalaryItem extends Model
in package
uses SoftDeletes, HasFactory

SalaryItem.php : 27

Class SalaryItem

Model for managing individual salary items.

##### Tags

mixin

### Table of Contents

#### Properties

$amount : float
$created_at : DateTime
$deleted_at : DateTime
$id : int
$salary : Salary
$salary_id : int
$template_item_id : int
$templateitem : TemplateItem
$updated_at : DateTime
$fillable : mixed
$with : mixed

#### Methods

salary() : BelongsTo
  Get the salary for this item.
templateitem() : BelongsTo
  Get the template item for this salary item.

### Properties

#### $amount

SalaryItem.php : 0
`public float $amount`

#### $created_at

SalaryItem.php : 0
`public DateTime $created_at`

#### $deleted_at

SalaryItem.php : 0
`public DateTime $deleted_at`

#### $id

SalaryItem.php : 0
`public int $id`

#### $salary read-only

SalaryItem.php : 0
`public Salary $salary`

#### $salary_id

SalaryItem.php : 0
`public int $salary_id`

#### $template_item_id

SalaryItem.php : 0
`public int $template_item_id`

#### $templateitem read-only

SalaryItem.php : 0
`public TemplateItem $templateitem`

#### $updated_at

SalaryItem.php : 0
`public DateTime $updated_at`

#### $fillable

SalaryItem.php : 35
`protected mixed $fillable = ['salary_id', 'template_item_id', 'amount']`

#### $with

SalaryItem.php : 33
`protected mixed $with = ['templateitem']`

### Methods

#### salary()

SalaryItem.php : 42

Get the salary for this item.

`public salary() : BelongsTo`

##### Return values

BelongsTo

#### templateitem()

SalaryItem.php : 52

Get the template item for this salary item.

`public templateitem() : BelongsTo`

##### Return values

BelongsTo

## Search results