I am trying to submit a form using curl post method.I have set csrf token properly to the form.
<form action="{{URL::route('the-route')}}" method="post"><input name="_token" type="hidden" value="{{csrf_token()}}">
But it shows TokenMismatchException
in VerifyCsrfToken.php line 46:
.I am stuck on it using shared hosting, i include my larvel 5 project in myapp
folder and laravel public
folder in public_html
As a test I have also tried as some other posts suggested commenting out
App\Http\Middleware\VerifyCsrfToken
, in app/Http/kernal.php
to see what would happen. After doing this every time I submit a form I get a message which says redirecting to: /auth/login
or /auth/register
depending on where I came from with no success.