IncomeExpense extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $casts : array<string|int, mixed>
- The attributes that should be cast.
- $dates : array<string|int, mixed>
- Column for soft deletes
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $hidden : array<string|int, mixed>
- The attributes excluded from the model's JSON form.
- $table : string
- The table associated with the model.
- boot() : mixed
- store() : BelongsTo
- Gets the store which owns the product.
Properties
$casts
The attributes that should be cast.
protected
array<string|int, mixed>
$casts
= ['base' => 'float', 'vat' => 'float', 'total' => 'float']
$dates
Column for soft deletes
protected
array<string|int, mixed>
$dates
= ["date", "deleted_at"]
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['store_id', 'date', 'description', 'provider', 'cif', 'type', 'base', 'vat', 'total']
$hidden
The attributes excluded from the model's JSON form.
protected
array<string|int, mixed>
$hidden
= ['updated_at', 'created_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= "income_expenses"
Methods
boot()
public
static boot() : mixed
Return values
mixed —store()
Gets the store which owns the product.
public
store() : BelongsTo