class CommentController extends Controller (View source)

Controller for comments (show, create, update).

Deletion is handled by the DeleteComment action.

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Methods

__construct()

No description

show(Post $post, Comment $comment, Request $request)

No description

create(Post $post, Request $request)

No description

store(Post $post, Request $request)

No description

edit(Post $post, Comment $comment)

No description

update(Post $post, Comment $comment, Request $request)

No description

reactions(Comment $comment, ReactionType $reactionType)

No description

Details

__construct()

No description

show(Post $post, Comment $comment, Request $request)

No description

Parameters

Post $post
Comment $comment
Request $request

create(Post $post, Request $request)

No description

Parameters

Post $post
Request $request

store(Post $post, Request $request)

No description

Parameters

Post $post
Request $request

edit(Post $post, Comment $comment)

No description

Parameters

Post $post
Comment $comment

update(Post $post, Comment $comment, Request $request)

No description

Parameters

Post $post
Comment $comment
Request $request

reactions(Comment $comment, ReactionType $reactionType)

No description

Parameters

Comment $comment
ReactionType $reactionType