I tried sending login post method with ajax and in the controller method I have something like
if(Request::ajax()){
return 'success';
}else{
return 'false';
}
every time i send ajax request with my html page it returns false instead of success
Help me out.