class CommentController extends ApiGuardController (View source)

Class CommentController.

Methods

__construct( CommentRepository $comment, CommentTransformer $commentTransformer)

CommentController constructor.

mixed
getComments($video_id)

Get comments of video.

mixed
store( CommentStoreRequest $request)

Store comment.

mixed
update( CommentUpdateRequest $request)

Update comment.

delete( CommentDeleteRequest $request)

Delete comment.

Details

at line line 52
__construct( CommentRepository $comment, CommentTransformer $commentTransformer)

CommentController constructor.

Parameters

CommentRepository $comment
CommentTransformer $commentTransformer

at line line 67
mixed getComments($video_id)

Get comments of video.

Parameters

$video_id

Return Value

mixed

at line line 81
mixed store( CommentStoreRequest $request)

Store comment.

Parameters

CommentStoreRequest $request

Return Value

mixed

at line line 96
mixed update( CommentUpdateRequest $request)

Update comment.

Parameters

CommentUpdateRequest $request

Return Value

mixed

at line line 110
delete( CommentDeleteRequest $request)

Delete comment.

Parameters

CommentDeleteRequest $request