回答編集履歴
2
「/」を消す
answer
CHANGED
@@ -7,6 +7,6 @@
|
|
7
7
|
<form action="hoge" method="fuga">
|
8
8
|
{!! csrf_field() !!}
|
9
9
|
<input type="text" name="piyo">
|
10
|
-
<input type="submit" value="foo"
|
10
|
+
<input type="submit" value="foo">
|
11
11
|
</form>
|
12
12
|
```
|
1
追記
answer
CHANGED
@@ -1,2 +1,12 @@
|
|
1
1
|
1年前の情報のようですが、このような質問を見つけました。試してみてください。
|
2
|
-
[参考記事](http://stackoverflow.com/questions/28541051/class-illuminate-html-htmlserviceprovider-not-found-laravel-5?answertab=active#tab-top)
|
2
|
+
[参考記事](http://stackoverflow.com/questions/28541051/class-illuminate-html-htmlserviceprovider-not-found-laravel-5?answertab=active#tab-top)
|
3
|
+
|
4
|
+
ちなみに既にご存知かもしれませんが、csrf_fieldヘルパー関数を使えばFormヘルパー関数を使わなくてもトークンを埋め込むことができます。
|
5
|
+
|
6
|
+
```php
|
7
|
+
<form action="hoge" method="fuga">
|
8
|
+
{!! csrf_field() !!}
|
9
|
+
<input type="text" name="piyo">
|
10
|
+
<input type="submit" value="foo"/>
|
11
|
+
</form>
|
12
|
+
```
|