Category
class Category extends Model implements Segregatable, Recyclable
Class Category
Traits
Properties
| protected array | $fillable | The attributes that are mass assignable. |
|
| Entity | $entity | ||
| string | $category_type | ||
| string | $name | ||
| Carbon | $destroyed_at | ||
| Carbon | $deleted_at |
Methods
string
toString($type = false)
Instance Identifier.
string
getTypeAttribute()
Instance Type.
HasMany
accounts()
Category Accounts.
object
attributes()
Category attributes.
array
getAccountBalances(Carbon|null $startDate = null, Carbon|null $endDate = null)
Category Accounts Balances for the given period.
Details
in
Segregating at line 28
static void
bootSegregating()
Register EntityScope for Model.
in
Segregating at line 46
BelongsTo
entity()
Model's Parent Entity.
in
Recycling at line 28
static void
bootRecycling()
Model recycling events.
in
Recycling at line 73
MorphMany
recycled()
Recycled Model records.
in
ModelTablePrefix at line 22
getTable()
Determine the model table name
at line 59
string
toString($type = false)
Instance Identifier.
at line 70
string
getTypeAttribute()
Instance Type.
at line 80
HasMany
accounts()
Category Accounts.
at line 90
object
attributes()
Category attributes.
at line 103
array
getAccountBalances(Carbon|null $startDate = null, Carbon|null $endDate = null)
Category Accounts Balances for the given period.