class Entity extends Model implements Recyclable

Class Entity

Traits

Properties

protected array $fillable The attributes that are mass assignable.
Currency $currency
string $name
bool $multi_currency
integer $year_start
Carbon $destroyed_at
Carbon $deleted_at

Methods

static void
bootRecycling()

Model recycling events.

from Recycling
MorphMany
recycled()

Recycled Model records.

from Recycling
getTable()

Determine the model table name

HasMany
users()

Users associated with the reporting Entity.

BelongsTo
currency()

Entity's Reporting Currency.

HasMany
reportingPeriods()

Entity's Reporting Periods.

object
attributes()

Entity attributes

defaultRate()

Reporting Currency Default Rate.

Details

in Recycling at line 26
static void bootRecycling()

Model recycling events.

Return Value

void

in Recycling at line 69
MorphMany recycled()

Recycled Model records.

Return Value

MorphMany

in ModelTablePrefix at line 20
getTable()

Determine the model table name

at line 56
HasMany users()

Users associated with the reporting Entity.

Return Value

HasMany

at line 66
BelongsTo currency()

Entity's Reporting Currency.

Return Value

BelongsTo

at line 76
HasMany reportingPeriods()

Entity's Reporting Periods.

Return Value

HasMany

at line 86
object attributes()

Entity attributes

Return Value

object

at line 96
ExchangeRate defaultRate()

Reporting Currency Default Rate.

Return Value

ExchangeRate