Laravel学習メモ
biladeファイルに書くタグはタグごとにgetかpostか決まっている。
下の様なリンクタグはgetになるので
< a href=""{{ action(CommentContoroller@delete, [id => $comment->id])}}>削除</a>
この様なリンクタグはgetになるのでrutesのweb.phpには、
Rutes::get(~~で指定してあげないと上手く動かない。
biladeファイルに書くタグはタグごとにgetかpostか決まっている。
下の様なリンクタグはgetになるので
< a href=""{{ action(CommentContoroller@delete, [id => $comment->id])}}>削除</a>
この様なリンクタグはgetになるのでrutesのweb.phpには、
Rutes::get(~~で指定してあげないと上手く動かない。