PointSetting
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory
Class PointSetting.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'activitypoint_setting'
- POINT_SETTING_ACTIONS = ['create']
Properties
- $action : string
- $created_at : string
- $description : string
- $description_phrase : string
- $disabledFields : array<string|int, mixed>
- $extra : array<string|int, mixed>|null
- $id : int
- $is_active : bool
- $max_earned : int
- $module_id : string
- $name : string
- $package_id : string
- $period : int
- $points : int
- $role : Role|null
- $updated_at : string
- $appends : array<string|int, string>
- $casts : array<string|int, string>
- $fillable : array<string|int, string>
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : PointSettingFactory
- getDescriptionAttribute() : string
- getDisabledFieldsAttribute() : array<string|int, string>
- moduleName() : string
- role() : BelongsTo
- transactions() : HasMany
- newFactory() : PointSettingFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'activitypoint_setting'
POINT_SETTING_ACTIONS
public
mixed
POINT_SETTING_ACTIONS
= ['create']
Properties
$action
public
string
$action
$created_at
public
string
$created_at
$description
public
string
$description
$description_phrase
public
string
$description_phrase
$disabledFields
public
array<string|int, mixed>
$disabledFields
$extra
public
array<string|int, mixed>|null
$extra
$id
public
int
$id
$is_active
public
bool
$is_active
$max_earned
public
int
$max_earned
$module_id
public
string
$module_id
$name
public
string
$name
$package_id
public
string
$package_id
$period
public
int
$period
$points
public
int
$points
$role
public
Role|null
$role
$updated_at
public
string
$updated_at
$appends
protected
array<string|int, string>
$appends
= ['description']
$casts
protected
array<string|int, string>
$casts
= ['is_active' => 'boolean', 'extra' => 'array']
$fillable
protected
array<string|int, string>
$fillable
= ['name', 'role_id', 'action', 'module_id', 'package_id', 'description_phrase', 'is_active', 'points', 'max_earned', 'period', 'created_at', 'updated_at', 'extra']
$table
protected
mixed
$table
= 'apt_settings'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : PointSettingFactory
Parameters
- $parameters : mixed
Return values
PointSettingFactorygetDescriptionAttribute()
public
getDescriptionAttribute() : string
Return values
stringgetDisabledFieldsAttribute()
public
getDisabledFieldsAttribute() : array<string|int, string>
Return values
array<string|int, string>moduleName()
public
moduleName() : string
Return values
stringrole()
public
role() : BelongsTo
Return values
BelongsTotransactions()
public
transactions() : HasMany
Return values
HasManynewFactory()
protected
static newFactory() : PointSettingFactory