Call to undefined function csrf_field()

Call to undefined function csrf_field()
Call to undefined function csrf_field()

Laravel’s csrf_field() function is introduced in version 5.1 .

In versions below 5.1 for adding CRSF token please use below code in your forms.

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

Leave a Reply

Your email address will not be published. Required fields are marked *