Type
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory
Class Type.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'notification_type'
- IS_ACTIVE = 1
Properties
- $can_edit : bool
- $channels : array<string|int, string>
- $database : bool
- $handler : string
- $id : int
- $is_active : bool
- $is_request : bool
- $is_system : bool
- $mail : bool
- $module_id : string
- $ordering : int
- $timestamps : mixed
- $title : string
- $type : string
- $typeChannels : Collection
- $casts : array<string, string>
- $fillable : array<string|int, string>
- $table : string
Methods
- entityId() : int
- entityType() : string
- factory() : TypeFactory
- moduleName() : string
- modules() : HasMany
- packageName() : string
- typeChannels() : HasMany
- newFactory() : TypeFactory
Constants
ENTITY_TYPE
public
string
ENTITY_TYPE
= 'notification_type'
IS_ACTIVE
public
mixed
IS_ACTIVE
= 1
Properties
$can_edit
public
bool
$can_edit
$channels
public
array<string|int, string>
$channels
$database
public
bool
$database
$handler
public
string
$handler
$id
public
int
$id
$is_active
public
bool
$is_active
$is_request
public
bool
$is_request
$is_system
public
bool
$is_system
public
bool
$mail
$module_id
public
string
$module_id
$ordering
public
int
$ordering
$timestamps
public
mixed
$timestamps
= false
$title
public
string
$title
$type
public
string
$type
$typeChannels
public
Collection
$typeChannels
$casts
protected
array<string, string>
$casts
= ['can_edit' => 'boolean', 'is_request' => 'boolean', 'is_active' => 'boolean', 'is_system' => 'boolean', 'channels' => 'array']
$fillable
protected
array<string|int, string>
$fillable
= ['type', 'handler', 'title', 'module_id', 'can_edit', 'is_request', 'is_active', 'channels', 'is_system', 'ordering']
$table
protected
string
$table
= 'notification_types'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : TypeFactory
Parameters
- $parameters : mixed
Return values
TypeFactorymoduleName()
public
moduleName() : string
Return values
stringmodules()
public
modules() : HasMany
Return values
HasManypackageName()
public
packageName() : string
Return values
stringtypeChannels()
public
typeChannels() : HasMany
Return values
HasManynewFactory()
protected
static newFactory() : TypeFactory