abstract class Model extends Model implements TaggableInterface (View source)

Traits

SoftDeletes
TaggableTrait

Properties

protected $presenterInstance from  HasPresenter
$timestamps

Methods

object
present(string $presenter = 'presenter')

No description

object
presentAdmin()

No description

$this
setPresenter(string $presenter, string $presenterProperty = 'presenter')

No description

$this
setPresenterAdmin(string $presenter)

No description

bool
isTranslatable(array|string|null $columns = null)

Checks if this model is translatable.

array
getDates()

Get the attributes that should be converted to dates.

from  HasDates
isTranslationModel()

No description

scopePublished($query)

No description

scopePublishedInListings($query)

No description

scopeVisible($query)

No description

setPublishStartDateAttribute($value)

No description

scopeDraft($query)

No description

scopeOnlyTrashed($query)

No description

getFillable()

No description

getTranslatedAttributes()

No description

static 
bootTaggableTrait()

No description

MorphToMany
tags()

{@inheritdoc}

Details

object present(string $presenter = 'presenter')

No description

Parameters

string $presenter

Return Value

object

object presentAdmin()

No description

Return Value

object

$this setPresenter(string $presenter, string $presenterProperty = 'presenter')

No description

Parameters

string $presenter
string $presenterProperty

Return Value

$this

$this setPresenterAdmin(string $presenter)

No description

Parameters

string $presenter

Return Value

$this

bool isTranslatable(array|string|null $columns = null)

Checks if this model is translatable.

Parameters

array|string|null $columns

Optionally limit the check to a set of columns.

Return Value

bool

array getDates()

Get the attributes that should be converted to dates.

Return Value

array

protected isTranslationModel()

No description

scopePublished($query)

No description

Parameters

$query

scopePublishedInListings($query)

No description

Parameters

$query

scopeVisible($query)

No description

Parameters

$query

setPublishStartDateAttribute($value)

No description

Parameters

$value

scopeDraft($query)

No description

Parameters

$query

scopeOnlyTrashed($query)

No description

Parameters

$query

getFillable()

No description

getTranslatedAttributes()

No description

static protected bootTaggableTrait()

No description

MorphToMany tags()

{@inheritdoc}

Return Value

MorphToMany