예제 #1
0
 public function deleteCommentAction(Episodes $episode, Comments $comment)
 {
     if ($this->auth->has($comment)) {
         $comment->delete();
     }
     return $this->redirectByRoute(['for' => 'movies.showEpisode', 'movie' => $episode->getMovie()->id, 'episode' => $episode->id]);
 }