class AppSetting extends Model (View source)

Traits

SoftDeletes
TaggableTrait

Properties

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

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
MorphMany
blocks()

Defines the one-to-many relationship for block objects.

renderNamedBlocks($name = 'default', $blockViewMappings = [], $data = [])

No description

string
renderBlocks(array $blockViewMappings = [], array $data = [])

Returns the rendered Blade views for all attached blocks in their proper order.

static 
booted()

No description

array
getFormBlocks()

No description

getSettingGroup()

No description

void
registerSettingBlocks()

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

MorphMany blocks()

Defines the one-to-many relationship for block objects.

Return Value

MorphMany

renderNamedBlocks($name = 'default', $blockViewMappings = [], $data = [])

No description

Parameters

$name
$blockViewMappings
$data

string renderBlocks(array $blockViewMappings = [], array $data = [])

Returns the rendered Blade views for all attached blocks in their proper order.

Parameters

array $blockViewMappings

Provide alternate Blade views for blocks. Format: ['block-type' => 'view.path'].

array $data

Provide extra data to Blade views.

Return Value

string

static booted()

No description

array getFormBlocks()

No description

Return Value

array

SettingsGroup getSettingGroup()

No description

Return Value

SettingsGroup

void registerSettingBlocks()

No description

Return Value

void