Model
abstract class Model extends Model implements TaggableInterface (View source)
Traits
Properties
protected | $presenterInstance | from HasPresenter | |
$timestamps |
Methods
$this
setPresenter(string $presenter, string $presenterProperty = 'presenter')
No description
from
HasPresenter
bool
isTranslatable(array|string|null $columns = null)
Checks if this model is translatable.
from
IsTranslatable
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
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.
protected
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 protected
bootTaggableTrait()
No description
MorphToMany
tags()
{@inheritdoc}