class LikeDislike extends Model (View source)

Class LikeDislike.

Methods

BelongsTo
user()

User relation.

BelongsTo
video()

Video relation.

mixed
scopeLikes($query)

Return all instances when type is likes.

mixed
scopeDislikes($query)

Return all instances when type is dislikes.

Details

at line line 39
BelongsTo user()

User relation.

Return Value

BelongsTo

at line line 49
BelongsTo video()

Video relation.

Return Value

BelongsTo

at line line 61
mixed scopeLikes($query)

Return all instances when type is likes.

Parameters

$query

Return Value

mixed

at line line 73
mixed scopeDislikes($query)

Return all instances when type is dislikes.

Parameters

$query

Return Value

mixed