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

static void
bootSegregating()

Register EntityScope for Model.

BelongsTo
entity()

Model's Parent Entity.

static void
bootRecycling()

Model recycling events.

MorphMany
recycled()

Recycled Model records.

getTable()

Determine the model table name

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.

Return Value

void

in Segregating at line 46
BelongsTo entity()

Model's Parent Entity.

Return Value

BelongsTo

in Recycling at line 28
static void bootRecycling()

Model recycling events.

Return Value

void

in Recycling at line 73
MorphMany recycled()

Recycled Model records.

Return Value

MorphMany

in ModelTablePrefix at line 22
getTable()

Determine the model table name

at line 59
string toString($type = false)

Instance Identifier.

Parameters

$type

Return Value

string

at line 70
string getTypeAttribute()

Instance Type.

Return Value

string

at line 80
HasMany accounts()

Category Accounts.

Return Value

HasMany

at line 90
object attributes()

Category attributes.

Return Value

object

at line 103
array getAccountBalances(Carbon|null $startDate = null, Carbon|null $endDate = null)

Category Accounts Balances for the given period.

Parameters

Carbon|null $startDate
Carbon|null $endDate

Return Value

array