class PostController extends Controller (View source)

Controller for a post (post page, create, and update).

Deletion is handled by the DeletePost action. Only editing of the post title/body is done through this controller - updating other attributes (channel, locked) is done through various Actions.

Traits

AuthorizesRequests
DispatchesJobs
ValidatesRequests

Methods

__construct()

No description

show(Post $post, Request $request)

No description

create()

No description

store(Request $request)

No description

edit(Post $post)

No description

update(Post $post, Request $request)

No description

reactions(Post $post, ReactionType $reactionType)

No description

Details

__construct()

No description

show(Post $post, Request $request)

No description

Parameters

Post $post
Request $request

create()

No description

store(Request $request)

No description

Parameters

Request $request

edit(Post $post)

No description

Parameters

Post $post

update(Post $post, Request $request)

No description

Parameters

Post $post
Request $request

reactions(Post $post, ReactionType $reactionType)

No description

Parameters

Post $post
ReactionType $reactionType