直接显示@csrf
&页面上的@method('PUT')
您可以使用
@method
Blade指令生成_method
输入:
<form action="/foo/bar" method="POST">
@method('PUT')
</form>
这些代码不起作用。
答案 0 :(得分:2)
These directives are coming in Laravel 5.6 as it was mentioned by Laravel News.
As I am writing this answer, Laravel 5.6 have not yet been released.
You can do this to install a fresh version of Laravel 5.6:
composer create-project laravel/laravel your-project-name-here dev-develop