SiteSetting
extends Model
in package
Uses
HasEntity, HasFactory
Class SiteSetting.
Tags
Table of Contents
Constants
- ENTITY_TYPE = 'site_setting'
Properties
- $config_name : string
- $created_at : string
- $env_var : string
- $id : int
- $is_auto : bool
- $is_public : int
- $module_id : string
- $name : string
- $type : string
- $updated_at : string
- $value : mixed
- $value_actual : mixed
- $value_default : string
- $casts : array<string|int, string>
- $fillable : array<string|int, string>
- $table : string
Methods
- entityId() : int
- entityType() : string
- factory() : SiteSettingFactory
- getValue() : mixed|string
- Save costs when call multiple times.
- getValueAttribute() : mixed|string
- isPrivate() : bool
- moduleName() : string
- booted() : mixed
- newFactory() : SiteSettingFactory
Constants
ENTITY_TYPE
public
string
ENTITY_TYPE
= 'site_setting'
Properties
$config_name
public
string
$config_name
$created_at
public
string
$created_at
$env_var
public
string
$env_var
$id
public
int
$id
$is_auto
public
bool
$is_auto
$is_public
public
int
$is_public
$module_id
public
string
$module_id
$name
public
string
$name
$type
public
string
$type
$updated_at
public
string
$updated_at
$value
public
mixed
$value
$value_actual
public
mixed
$value_actual
$value_default
public
string
$value_default
$casts
protected
array<string|int, string>
$casts
= ['value_actual' => 'array', 'value_default' => 'array', 'is_auto' => 'boolean']
$fillable
protected
array<string|int, string>
$fillable
= ['module_id', 'name', 'config_name', 'package_id', 'type', 'is_auto', 'value_actual', 'value_default', 'is_public', 'env_var']
$table
protected
string
$table
= 'core_site_settings'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
factory() : SiteSettingFactory
Return values
SiteSettingFactorygetValue()
Save costs when call multiple times.
public
getValue() : mixed|string
Return values
mixed|stringgetValueAttribute()
public
getValueAttribute() : mixed|string
Tags
Return values
mixed|stringisPrivate()
public
isPrivate() : bool
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringbooted()
protected
static booted() : mixed
newFactory()
protected
static newFactory() : SiteSettingFactory