AlbumItem
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory
Class AlbumItem.
Tags
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'photo_album_item'
Properties
- $album : Album
- $album_id : int
- $created_at : string
- $detail : Content|null
- $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
- album() : BelongsTo
- detail() : MorphTo
- entityId() : int
- entityType() : string
- factory() : AlbumItemFactory
- group() : BelongsTo
- moduleName() : string
- newFactory() : AlbumItemFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'photo_album_item'
Properties
$album
public
Album
$album
$album_id
public
int
$album_id
$created_at
public
string
$created_at
$detail
public
Content|null
$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
= ['album_id', 'group_id', 'item_type', 'item_id', 'ordering', 'created_at', 'updated_at']
$table
protected
mixed
$table
= 'photo_album_item'
$with
protected
array<string|int, string>
$with
= ['detail']
Methods
album()
public
album() : BelongsTo
Return values
BelongsTodetail()
public
detail() : MorphTo
Return values
MorphToentityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory() : AlbumItemFactory
Return values
AlbumItemFactorygroup()
public
group() : BelongsTo
Return values
BelongsTomoduleName()
public
moduleName() : string
Return values
stringnewFactory()
protected
static newFactory() : AlbumItemFactory