When I have submit form then I am getting as error:
TokenMismatchException in VerifyCsrfToken.php line 67: error
I have already added token variable:
<input name="_token" value="erlhterehewfhfuetDYTewruhfekrgf" type="hidden">
Is there any other solution?
The csrf token should be placed inside in the form. This can be achieved using:
@csrf
or
{!! csrf_field() !!}
example:
<form method="POST" action="/profile">
@csrf
<input type="text" name="example" />
</form>