Laravel @csrf Directive

On the blade side, you also need to send the Token value for CSRF protection in form operations. Normally, you can do this without using the directive:

<input type="hidden" name="_token" value"{{ csrf_token() }}">

However, it will be sufficient to put this directive in the form instead.

<form action="" method="post">
    @csrf
    ...
</form>
Comments

There are no comments, make the firs comment