Everything was working fine. No issue. But suddenly from nowhere this error started to show up.
"CSRF token mismatch.",
All forms was working fine and next day I open project and found this error. Very strange, how a working code started to show error all of the sudden...!!
Here is my code
$.ajax({
type:'POST',
url:"{{ route('loginuser.post') }}",
data:{_token: "{{ csrf_token() }}",email:email,password:password,remember:remember},
dataType:'json',
success:function(data){
As you can see here is I am adding csrf token in this line
data:{_token: "{{ csrf_token() }}",email:email,password:password,remember:remember},
I try to clear cache too but still didn't work. How a working code can do like this all of the sudden. Laravel is surely a strange framework!!