class Media extends Model (View source)

Traits

SoftDeletes
TaggableTrait

Properties

protected $presenterInstance from  HasPresenter
$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(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

from  Model
scopePublished($query)

No description

from  Model
scopePublishedInListings($query)

No description

from  Model
scopeVisible($query)

No description

from  Model
setPublishStartDateAttribute($value)

No description

from  Model
scopeDraft($query)

No description

from  Model
scopeOnlyTrashed($query)

No description

from  Model
getFillable()

No description

from  Model
getTranslatedAttributes()

No description

from  Model
static 
bootTaggableTrait()

No description

from  Model
MorphToMany
tags()

{@inheritdoc}

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

__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