the thing is that the project is working before.. then all of sudden i started seeing 419 on all my post request and i have @csrf on all my forms too
<form method="POST" action="{{ route('login') }}">
@csrf
<div class="form_title pb-2">
<h4>@lang('Login Here')</h4>
</div>
<div class="mb-4">
<input class="form-control" type="text" name="username" value="{{old('username')}}" placeholder="@lang('Email Or Username')">
@error('username')<p class="text-danger mt-1">@lang($message)</p>@enderror
@error('email')<p class="text-danger mt-1">@lang($message)</p>@enderror
</div>
2
Answers
Yes, the first case is you have to add @csrf field, which you have already done.
First try running php artisan cache:clear
Try this if you are on localhost
In config/session.php
Or if you’re on server
In config/session.php
And don’t forget running.