0

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.

Mahesh Thapa
  • 141
  • 1
  • 2
  • 10

1 Answers1

1

Replace use Illuminate\Http\Request with use Request.

Kiran LM
  • 1,359
  • 1
  • 16
  • 29