trait InteractsWithRecord (View source)

Properties

protected Model|Closure|null $record
protected string|Closure|null $model
protected string|Closure|null $modelLabel
protected string|Closure|null $pluralModelLabel
protected string|Closure|null $recordTitle
protected string|Closure|null $recordTitleAttribute

Methods

record(Model|Closure|null $record)

No description

model(string|Closure|null $model)

No description

modelLabel(string|Closure|null $label)

No description

pluralModelLabel(string|Closure|null $label)

No description

recordTitle(string|Closure|null $title)

No description

recordTitleAttribute(string|Closure|null $attribute)

No description

Model|null
getRecord()

No description

string|null
getRecordTitle(Model|null $record = null)

No description

string|null
getCustomRecordTitle(Model|null $record = null)

No description

string|null
bool
hasCustomRecordTitle()

No description

bool
bool
hasRecord()

No description

string|null
getModel()

No description

string|null
getCustomModel()

No description

string|null
getModelLabel()

No description

string|null
getCustomModelLabel()

No description

string|null
getPluralModelLabel()

No description

string|null
getCustomPluralModelLabel()

No description

array
parseAuthorizationArguments(array $arguments)

No description

Details

InteractsWithRecord record(Model|Closure|null $record)

No description

Parameters

Model|Closure|null $record

Return Value

InteractsWithRecord

InteractsWithRecord model(string|Closure|null $model)

No description

Parameters

string|Closure|null $model

Return Value

InteractsWithRecord

InteractsWithRecord modelLabel(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

InteractsWithRecord

InteractsWithRecord pluralModelLabel(string|Closure|null $label)

No description

Parameters

string|Closure|null $label

Return Value

InteractsWithRecord

InteractsWithRecord recordTitle(string|Closure|null $title)

No description

Parameters

string|Closure|null $title

Return Value

InteractsWithRecord

InteractsWithRecord recordTitleAttribute(string|Closure|null $attribute)

No description

Parameters

string|Closure|null $attribute

Return Value

InteractsWithRecord

Model|null getRecord()

No description

Return Value

Model|null

string|null getRecordTitle(Model|null $record = null)

No description

Parameters

Model|null $record

Return Value

string|null

string|null getCustomRecordTitle(Model|null $record = null)

No description

Parameters

Model|null $record

Return Value

string|null

string|null getCustomRecordTitleAttribute()

No description

Return Value

string|null

bool hasCustomRecordTitle()

No description

Return Value

bool

bool hasCustomRecordTitleAttribute()

No description

Return Value

bool

bool hasRecord()

No description

Return Value

bool

string|null getModel()

No description

Return Value

string|null

string|null getCustomModel()

No description

Return Value

string|null

string|null getModelLabel()

No description

Return Value

string|null

string|null getCustomModelLabel()

No description

Return Value

string|null

string|null getPluralModelLabel()

No description

Return Value

string|null

string|null getCustomPluralModelLabel()

No description

Return Value

string|null

protected array parseAuthorizationArguments(array $arguments)

No description

Parameters

array $arguments

Return Value

array