class ExchangeRate extends Model implements Segregatable, Recyclable

Class ExchangeRate

Traits

Properties

protected array $fillable

The attributes that are mass assignable.

Entity $entity
Currency $currency
Carbon $valid_from
Carbon $valid_to
float $rate
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.

BelongsTo
currency()

Exchange Rate Currency.

object
attributes()

ExchangeRate attributes

bool
save(array $options = [])

ExchangeRate Validation.

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

Instance Identifier.

Parameters

$type

Return Value

string

at line 73
BelongsTo currency()

Exchange Rate Currency.

Return Value

BelongsTo

at line 83
object attributes()

ExchangeRate attributes

Return Value

object

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

ExchangeRate Validation.

Parameters

array $options

Return Value

bool