class Video extends Model (View source)

Class Video.

Properties

$name $name
$category $category
$path $path
$likes $likes
$dislikes $dislikes

Methods

BelongsTo
getUser()

Get User.

HasMany
getLikesDislikes()

Get likes/Dislikes.

mixed
likes()

Call scope likes.

mixed
dislikes()

Call scope dislikes.

HasMany
getComments()

Get comments.

Details

at line line 38
BelongsTo getUser()

Get User.

Return Value

BelongsTo

at line line 48
HasMany getLikesDislikes()

Get likes/Dislikes.

Return Value

HasMany

at line line 58
mixed likes()

Call scope likes.

Return Value

mixed

at line line 68
mixed dislikes()

Call scope dislikes.

Return Value

mixed

at line line 78
HasMany getComments()

Get comments.

Return Value

HasMany