Bånder

Recommendation extends BaseModel
in package

Table of Contents

Properties

$dateFormat  : mixed
$fillable  : mixed

Methods

formatForException()  : string
newEloquentBuilder()  : mixed
source()  : MorphTo
Get the source model that the recommendation belongs to.
target()  : MorphTo
Get the target model for the recommendation.
update()  : mixed
user()  : mixed

Properties

$dateFormat

protected mixed $dateFormat = 'Y-m-d H:i:sO'

$fillable

protected mixed $fillable = [ 'source_type', 'source_id', 'target_type', 'target_id', 'user_id', 'name', 'score', // raw score means that multiple items can have identical scores 'position', ]

Methods

formatForException()

public formatForException() : string
Return values
string

newEloquentBuilder()

public newEloquentBuilder(mixed $query) : mixed
Parameters
$query : mixed

source()

Get the source model that the recommendation belongs to.

public source() : MorphTo
Return values
MorphTo

target()

Get the target model for the recommendation.

public target() : MorphTo
Return values
MorphTo

update()

public update([array<string|int, mixed> $attributes = [] ][, array<string|int, mixed> $options = [] ]) : mixed
Parameters
$attributes : array<string|int, mixed> = []
$options : array<string|int, mixed> = []

        
On this page

Search results