abstract class Model extends Model implements TaggableInterface, TwillModelContract, TwillSchedulableModel, TwillLinkableModel (View source)

Traits

SoftDeletes
TaggableTrait

Properties

protected $presenterInstance from  HasPresenter
$translatedAttributes from  IsTranslatable
$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(null|array|string $columns = null)

Checks if this model is translatable.

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 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.

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(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.

Parameters

null|array|string $columns

Return Value

bool

protected bool isTranslationModel()

No description

Return Value

bool

Builder scopePublished(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Builder scopeAccessible(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Builder scopePublishedInListings(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Builder scopeVisible(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

void setPublishStartDateAttribute($value)

No description

Parameters

$value

Return Value

void

Builder scopeDraft(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

Builder scopeOnlyTrashed(Builder $query)

No description

Parameters

Builder $query

Return Value

Builder

array getFillable()

No description

Return Value

array

array getTranslatedAttributes()

No description

Return Value

array

static protected void bootTaggableTrait()

No description

Return Value

void

MorphToMany tags()

No description

Return Value

MorphToMany

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

Return Value

string