FriendSuggestionIgnore
extends Model
in package
implements
Entity
Uses
HasEntity, HasFactory, HasUserMorph, HasOwnerMorph
Class FriendSuggestionIgnore.
Table of Contents
Interfaces
- Entity
- Interface Entity.
Constants
- ENTITY_TYPE = 'friend_suggestion_ignore'
Properties
- $id : int
- $timestamps : mixed
- $fillable : array<string|int, string>
- $table : mixed
Methods
- entityId() : int
- entityType() : string
- factory() : FriendSuggestionIgnoreFactory
- getOwnerAttribute() : mixed
- getOwnerEntityAttribute() : mixed
- getUserAttribute() : mixed
- getUserEntityAttribute() : mixed
- isOwner() : bool
- check if $user is the owner of entity.
- isUser() : bool
- check if $user is the user (creator) of entity.
- moduleName() : string
- owner() : MorphTo
- ownerEntity() : BelongsTo
- ownerId() : int
- ownerType() : string
- user() : MorphTo
- userEntity() : BelongsTo
- userId() : int
- userType() : string
- newFactory() : FriendSuggestionIgnoreFactory
Constants
ENTITY_TYPE
public
mixed
ENTITY_TYPE
= 'friend_suggestion_ignore'
Properties
$id
public
int
$id
$timestamps
public
mixed
$timestamps
= false
$fillable
protected
array<string|int, string>
$fillable
= ['user_id', 'user_type', 'owner_id', 'owner_type']
$table
protected
mixed
$table
= 'friend_suggestion_ignore'
Methods
entityId()
public
entityId() : int
Return values
intentityType()
public
entityType() : string
Return values
stringfactory()
public
static factory(mixed $parameters) : FriendSuggestionIgnoreFactory
Parameters
- $parameters : mixed
Return values
FriendSuggestionIgnoreFactorygetOwnerAttribute()
public
getOwnerAttribute() : mixed
getOwnerEntityAttribute()
public
getOwnerEntityAttribute() : mixed
getUserAttribute()
public
getUserAttribute() : mixed
getUserEntityAttribute()
public
getUserEntityAttribute() : mixed
isOwner()
check if $user is the owner of entity.
public
isOwner(User $user) : bool
Parameters
- $user : User
Return values
boolisUser()
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
stringowner()
public
owner() : MorphTo
Return values
MorphToownerEntity()
public
ownerEntity() : BelongsTo
Return values
BelongsToownerId()
public
ownerId() : int
Return values
intownerType()
public
ownerType() : 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() : FriendSuggestionIgnoreFactory