CashbookEntry extends Model Uses HasFactory, SoftDeletes
Table of Contents
- $appends : mixed
- $dates : array<string|int, mixed>
- Column for soft deletes
- $fillable : array<string|int, mixed>
- The attributes that are mass assignable.
- $guarded : array<string|int, mixed>
- The attributes that are not mass assignable.
- $hidden : array<string|int, mixed>
- The attributes that should be hidden for arrays.
- $table : string
- The table associated with the model.
- $with : array<string|int, mixed>
- The extra attributes that should be showed for arrays.
- agency() : mixed
- Get the agency of the item.
- getAccountAttribute() : array<string|int, mixed>|null
- Establish the value of account attribute.
- getUserInitialsAttribute() : array<string|int, mixed>|null
- Establish the value of user_initials attribute.
- paymentTransaction() : mixed
- Get the transactions of the item.
- user() : mixed
- Get the user that created the item.
Properties
$appends
protected
mixed
$appends
= ['user_initials', 'account']
$dates
Column for soft deletes
protected
array<string|int, mixed>
$dates
= ['deleted_at']
$fillable
The attributes that are mass assignable.
protected
array<string|int, mixed>
$fillable
= ['agency_id', 'account_id', 'payment_transaction_id', 'text', 'cash_in', 'cash_out', 'created_at']
$guarded
The attributes that are not mass assignable.
protected
array<string|int, mixed>
$guarded
= ['id', 'created_at', 'updated_at', 'deleted_at', 'created_by']
$hidden
The attributes that should be hidden for arrays.
protected
array<string|int, mixed>
$hidden
= ['created_by', 'updated_at', 'deleted_at']
$table
The table associated with the model.
protected
string
$table
= 'cashbook_entries'
$with
The extra attributes that should be showed for arrays.
protected
array<string|int, mixed>
$with
= []
Methods
agency()
Get the agency of the item.
public
agency() : mixed
Return values
mixed —getAccountAttribute()
Establish the value of account attribute.
public
getAccountAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —getUserInitialsAttribute()
Establish the value of user_initials attribute.
public
getUserInitialsAttribute() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —paymentTransaction()
Get the transactions of the item.
public
paymentTransaction() : mixed
Return values
mixed —user()
Get the user that created the item.
public
user() : mixed