Add json wrapper to route's response so that it can be called via ajax
This commit is contained in:
@@ -115,7 +115,7 @@ class CustomersController extends Controller
|
|||||||
if(sizeof($customers_info) > 0)
|
if(sizeof($customers_info) > 0)
|
||||||
return $customers_info;
|
return $customers_info;
|
||||||
else
|
else
|
||||||
return "no-data";
|
return response(["no-data"], 200);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user