trait HasDefaultRecord (View source)

Methods

void
scopeDefault(Builder $query, $default = true)

Return the default scope.

getDefault()

Get the default record.

Details

void scopeDefault(Builder $query, $default = true)

Return the default scope.

Parameters

Builder $query
$default

Return Value

void

static HasDefaultRecord getDefault()

Get the default record.

Return Value

HasDefaultRecord