Add json wrapper to route's response so that it can be called via ajax

This commit is contained in:
afiq.hamzah
2022-08-10 12:43:42 +08:00
parent 7a32a7e551
commit cc144c3e85
+1 -1
View File
@@ -115,7 +115,7 @@ class CustomersController extends Controller
if(sizeof($customers_info) > 0)
return $customers_info;
else
return "no-data";
return response(["no-data"], 200);
}
/**