MetaFox

RecentUsed extends Model
in package
Uses HasEntity, HasFactory, HasUserMorph

Class RecentUsed.

Table of Contents

Constants

ENTITY_TYPE  = 'bgs_recent_used'
UPDATED_AT  = null

Properties

$background_id  : int
$created_at  : string
$id  : int
$user_id  : int
$user_type  : string
$fillable  : array<string|int, string>
$table  : mixed

Methods

background()  : BelongsTo
entityId()  : int
entityType()  : string
factory()  : RecentUsedFactory
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
user()  : MorphTo
userEntity()  : BelongsTo
userId()  : int
userType()  : string
newFactory()  : RecentUsedFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'bgs_recent_used'

Properties

$fillable

protected array<string|int, string> $fillable = ['user_id', 'user_type', 'background_id']

$table

protected mixed $table = 'bgs_recent_used'

Methods

background()

public background() : BelongsTo
Return values
BelongsTo

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory(mixed $parameters) : RecentUsedFactory
Parameters
$parameters : mixed
Return values
RecentUsedFactory

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

moduleName()

public moduleName() : string
Return values
string

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : RecentUsedFactory
Return values
RecentUsedFactory

        
On this page

Search results