class VideoController extends ApiGuardController (View source)

Class VideoController.

Methods

__construct( VideoRepository $video, UserRepository $user, VideoTransformer $videoTransformer)

VideoController constructor.

getAllVideos()

Return all Videos.

getBestVideos()

Return the best Videos.

getVideosUser($id)

Return Videos only user.

getVideosForCategory($name)

Return Videos for Category.

getVideosForSearch($search)

Return Videos for Search.

mixed
store( VideoUploadRequest $request)

Store a newly created video in storage.

mixed
show($id)

No description

mixed
update( Request $request, $id)

Update the specified video in storage.

mixed
destroy($id)

Remove the specified video from storage.

Details

at line line 68
__construct( VideoRepository $video, UserRepository $user, VideoTransformer $videoTransformer)

VideoController constructor.

Parameters

VideoRepository $video
UserRepository $user
VideoTransformer $videoTransformer

at line line 80
getAllVideos()

Return all Videos.

at line line 90
getBestVideos()

Return the best Videos.

at line line 100
getVideosUser($id)

Return Videos only user.

Parameters

$id

at line line 111
getVideosForCategory($name)

Return Videos for Category.

Parameters

$name

at line line 121
getVideosForSearch($search)

Return Videos for Search.

Parameters

$search

at line line 135
mixed store( VideoUploadRequest $request)

Store a newly created video in storage.

Parameters

VideoUploadRequest $request

Return Value

mixed

at line line 160
mixed show($id)

Parameters

$id

Return Value

mixed

at line line 175
mixed update( Request $request, $id)

Update the specified video in storage.

Parameters

Request $request
$id

Return Value

mixed

at line line 191
mixed destroy($id)

Remove the specified video from storage.

Parameters

$id

Return Value

mixed