Pin
extends Model
in package
Uses
HasFactory, HasEntity, HasUserMorph
Class Hidden.
Tags
Table of Contents
Constants
- ENTITY_TYPE = 'feed_pin'
Properties
- $created_at : string
- $feed_id : int
- $id : int
- $updated_at : string
- $user_id : int
- $user_type : string
- $userEntity : UserEntity
- $fillable : mixed
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : PinFactory
- 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() : PinFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'feed_pin'
Properties
$created_at
public
string
$created_at
$feed_id
public
int
$feed_id
$id
public
int
$id
$updated_at
public
string
$updated_at
$user_id
public
int
$user_id
$user_type
public
string
$user_type
$userEntity
public
UserEntity
$userEntity
$fillable
protected
mixed
$fillable
= ['user_id', 'user_type', 'owner_id', 'owner_type', 'feed_id']
$table
protected
mixed
$table
= 'activity_pins'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory() : PinFactory
Return values
PinFactorygetUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isUser()
check if $user is the user (creator) of entity.
public
isUser(User $user) : bool
Parameters
- $user : User
Return values
boolmoduleName()
public
moduleName() : string
Return values
stringuser()
public
user() : MorphTo
Return values
MorphTouserEntity()
public
userEntity() : BelongsTo
Return values
BelongsTouserId()
public
userId() : int
Return values
intuserType()
public
userType() : string
Return values
stringnewFactory()
protected
static newFactory() : PinFactory