Permalink
Browse files

Episode 32

  • Loading branch information...
JeffreyWay committed May 1, 2017
1 parent 8a388cc commit 63c5ff71cd13c0ca4f59ee82bdb09e3a16d8d799
@@ -34,6 +34,20 @@ public function store($channelId, Thread $thread)
return back()->with('flash', 'Your reply has been left.');
}
/**
* Update an existing reply.
*
* @param Reply $reply
*/
public function update(Reply $reply)
{
$this->authorize('update', $reply);
$this->validate(request(), ['body' => 'required']);
$reply->update(request(['body']));
}
/**
* Delete the given reply.
*
Oops, something went wrong.

0 comments on commit 63c5ff7

Please sign in to comment.