class Media extends Model (View source)

Traits

SoftDeletes
TaggableTrait

Properties

protected $presenterInstance from  HasPresenter
$translatedAttributes from  IsTranslatable
$timestamps
protected $fillable

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

from  Model
Builder
scopePublished(Builder $query)

No description

from  Model
Builder
scopeAccessible(Builder $query)

No description

from  Model
Builder
scopePublishedInListings(Builder $query)

No description

from  Model
Builder
scopeVisible(Builder $query)

No description

from  Model
void
setPublishStartDateAttribute($value)

No description

from  Model
Builder
scopeDraft(Builder $query)

No description

from  Model
Builder
scopeOnlyTrashed(Builder $query)

No description

from  Model
array
getFillable()

No description

from  Model
array
getTranslatedAttributes()

No description

from  Model
static void
bootTaggableTrait()

No description

from  Model
MorphToMany
tags()

No description

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

from  Model
__construct(array $attributes = [])

No description

scopeUnused($query)

No description

getDimensionsAttribute()

No description

altTextFrom($filename)

No description

canDeleteSafely()

No description

isReferenced()

No description

toCmsArray()

No description

getMetadata($name, $fallback = null)

No description

replace($fields)

No description

delete()

No description

getTable()

No description

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

__construct(array $attributes = [])

No description

Parameters

array $attributes

scopeUnused($query)

No description

Parameters

$query

getDimensionsAttribute()

No description

altTextFrom($filename)

No description

Parameters

$filename

canDeleteSafely()

No description

isReferenced()

No description

toCmsArray()

No description

getMetadata($name, $fallback = null)

No description

Parameters

$name
$fallback

replace($fields)

No description

Parameters

$fields

delete()

No description

getTable()

No description