PhotoGroupItem
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory, HasItemMorph
Class PhotoGroupItem.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'photo_set_item'
Properties
- $created_at : string
- $detail : Content
- $group : PhotoGroup
- $group_id : int
- $id : int
- $item_type : string
- $ordering : int
- $updated_at : string
- $fillable : mixed
- $table : mixed
- $with : array<string|int, string>
Methods
- detail() : MorphTo
- entityId() : int
- entityType() : string
- factory() : PhotoGroupItemFactory
- getItemAttribute() : mixed
- group() : BelongsTo
- isApproved() : bool
- item() : MorphTo|null
- itemId() : int
- itemType() : string
- moduleName() : string
- newFactory() : PhotoGroupItemFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'photo_set_item'
Properties
$created_at
public
string
$created_at
$detail
public
Content
$detail
$group
public
PhotoGroup
$group
$group_id
public
int
$group_id
$id
public
int
$id
$item_type
public
string
$item_type
$ordering
public
int
$ordering
$updated_at
public
string
$updated_at
$fillable
protected
mixed
$fillable
= ['group_id', 'item_type', 'item_id', 'ordering', 'created_at', 'updated_at']
$table
protected
mixed
$table
= 'photo_group_items'
$with
protected
array<string|int, string>
$with
= ['detail']
Methods
detail()
public
detail() : MorphTo
Return values
MorphToentityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory() : PhotoGroupItemFactory
Return values
PhotoGroupItemFactorygetItemAttribute()
public
getItemAttribute() : mixed
group()
public
group() : BelongsTo
Return values
BelongsToisApproved()
public
isApproved() : bool
Return values
boolitem()
public
item() : MorphTo|null
Return values
MorphTo|nullitemId()
public
itemId() : int
Return values
intitemType()
public
itemType() : string
Return values
stringmoduleName()
public
moduleName() : string
Return values
stringnewFactory()
protected
static newFactory() : PhotoGroupItemFactory