App\Http\Controllers\BeatmapDiscussionPostsController::restore PHP Method

restore() public method

public restore ( $id )
    public function restore($id)
    {
        $post = BeatmapDiscussionPost::whereNotNull('deleted_at')->findOrFail($id);
        priv_check('BeatmapDiscussionPostRestore', $post)->ensureCan();
        $post->restore();
        return $post->beatmapsetDiscussion->defaultJson();
    }