Laravel @method Directive

Since PUT, PATH and DELETE methods are defined in HTML forms, you need to define the method as _method in the form. If we were to do it without using this directive, we would have to do as follows;

<input type="hidden" name="_method" value"PUT">

However, instead, it will be sufficient to use this directive in the form as follows.

<form action="" method="post">
    @method('PUT')
    ...
</form>
Comments

There are no comments, make the firs comment