public function addTagAction(Request $request, Movies $movie) { $data = $request->getPost(); $movie->addTag(trim($data['tagName']), $this->auth); return $this->redirectByRoute(['for' => 'movies.showTags', 'movie' => $movie->id]); }