SyntaxFix
Write A Post
Hire A Developer
Questions
To check an ajax request you can use if (Request::ajax())
if (Request::ajax())
Note: If you are using laravel 5, then in the controller replace
use Illuminate\Http\Request;
with
use Request;
I hope it'll work.