刀片似乎不起作用

时间:2018-02-05 12:28:51

标签: laravel laravel-blade

直接显示@csrf&页面上的@method('PUT')

  

您可以使用@method Blade指令生成_method输入:

<form action="/foo/bar" method="POST">
    @method('PUT')
</form>

这些代码不起作用。

1 个答案:

答案 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