class Vat extends Model implements Segregatable, Recyclable

Class Vat

Traits

Properties

protected array $fillable

The attributes that are mass assignable.

Entity $entity
Account $account
string $code
string $name
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.

object
attributes()

Vat attributes.

HasOne
account()

LineItem Vat Account.

bool
save(array $options = [])

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

Instance Identifier.

Parameters

$type

Return Value

string

at line 77
object attributes()

Vat attributes.

Return Value

object

at line 87
HasOne account()

LineItem Vat Account.

Return Value

HasOne

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

Vat Validation.

Parameters

array $options

Return Value

bool