Exemplo n.º 1
0
 public function store(Request $request, Album $album)
 {
     $this->validate($request, ['comment' => 'required']);
     $comment = new Comment($request->all());
     $album->createComment($comment);
     flash('Your comment has been added.', 'success');
     return back();
 }