Model
abstract class Model extends Model implements TaggableInterface, TwillModelContract, TwillSchedulableModel, TwillLinkableModel (View source)
Traits
Properties
protected | $presenterInstance | from HasPresenter | |
$translatedAttributes | from IsTranslatable | ||
$timestamps |
Methods
No description
Checks if this model is translatable.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
This method should return the full url. By default this will be based on the controller slug or urlWithoutSlug. But it can be overwritten in order to fully customize the link.
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(null|array|string $columns = null)
Checks if this model is translatable.
If no columns/column is provided it will return true if the model itself is translatable.
protected bool
isTranslationModel()
No description
Builder
scopePublished(Builder $query)
No description
Builder
scopeAccessible(Builder $query)
No description
Builder
scopePublishedInListings(Builder $query)
No description
Builder
scopeVisible(Builder $query)
No description
void
setPublishStartDateAttribute($value)
No description
Builder
scopeDraft(Builder $query)
No description
Builder
scopeOnlyTrashed(Builder $query)
No description
array
getFillable()
No description
array
getTranslatedAttributes()
No description
static protected void
bootTaggableTrait()
No description
MorphToMany
tags()
No description
string
getFullUrl()
This method should return the full url. By default this will be based on the controller slug or urlWithoutSlug. But it can be overwritten in order to fully customize the link.
This link is used by for example TwillUtil::parseInternalLinks