0

I use Laravel 7. I have a page with scrf token send as a POST request in Blade form.

<form method="POST" action="some url">

    @csrf
    <div class="panel-body" style="padding:25px;">
        <div class="form-group">
        
            <input name="keyword" type="text" class="form-control">
                       
            
            <button type="submit" class="btn btn-danger">search</button>
        </div>
    </div>

</form>

This line is in my head element:

<meta name="_token" content="{{ csrf_token() }}" />

I have file session config. I already check storage/framework/session and it has permission to write files and new files created recently. When i put my url in csrf except array in VerifyCsrfToken Class, all things work just fine. I check my request and sure there is _token field right there. I'd read this and that too but answers didn't work in my case.

My from request sample:

form request

Mehran Zamani
  • 831
  • 9
  • 31

1 Answers1

0

Can you try this?

{{csrf_token()}}

instead of

@csrf
Muhammad Tariq
  • 175
  • 1
  • 11