You can use the following syntax to check ajax request in laravel.
if ($request->ajax()) {
     // Now you can write your code here.
}

Suggest An Answer

No suggestions Available!