Damage extends Model Uses HasFactory
Table of Contents
- $casts : mixed
- $fillable : mixed
- $hidden : mixed
- $with : mixed
- agency() : mixed
- Get the agency of the item.
- category() : BelongsTo
Properties
$casts
protected
mixed
$casts
= ['cost' => 'float', 'labor_hours' => 'integer', 'repair_time' => 'integer', 'category_id' => 'integer']
$fillable
protected
mixed
$fillable
= ['name', 'cost', 'labor_hours', 'repair_time', 'category_id', 'agency_id']
$hidden
protected
mixed
$hidden
= ['agency_id', 'category_id', 'updated_at', 'created_at']
$with
protected
mixed
$with
= ['category']
Methods
agency()
Get the agency of the item.
public
agency() : mixed
Return values
mixed —category()
public
category() : BelongsTo