Will Laravel determine whether the request is ajax?
No,
if(Request::ajax()){ echo "AJAX"; }
Of course you can use middleware to uniformly handle ajax requests
middleware
No,
Of course you can use
middleware
to uniformly handle ajax requests