class Currency extends Model implements Recyclable, Segregatable

Class Currency

Traits

Properties

protected array $fillable

The attributes that are mass assignable.

string $currency_code
string $name
Carbon $destroyed_at
Carbon $deleted_at

Methods

static void
bootSegregating()

Register EntityScope for Model.

HasOne
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.

HasMany
exchangeRates()

Currency Exchange Rates.

object
attributes()

Currency attributes.

bool
save(array $options = [])

Associate Entity.

Details

in Segregating at line 28
static void bootSegregating()

Register EntityScope for Model.

Return Value

void

at line 78
HasOne entity()

Model's Parent Entity.

Return Value

HasOne

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 57
string toString($type = false)

Instance Identifier.

Parameters

$type

Return Value

string

at line 68
HasMany exchangeRates()

Currency Exchange Rates.

Return Value

HasMany

at line 88
object attributes()

Currency attributes.

Return Value

object

at line 96
bool save(array $options = [])

Associate Entity.

Parameters

array $options

Return Value

bool