Browse Source

integration improvement

pull/3/head
Muhammad Sulaiman Yusuf 2 years ago committed by Gitea
parent
commit
9787bf1879
  1. 5
      app/Http/Controllers/RequestMaterialController.php

5
app/Http/Controllers/RequestMaterialController.php

@ -190,7 +190,10 @@ class RequestMaterialController extends Controller
foreach($response->data as $d){
array_push($data, $d);
}
} while ($currentPage < $firstResponse->last_page);
} while ($currentPage < 5);
// let the user narrow down the search by themself
// a searching action with 'cable' keyword could take minutes
// because there are >1k items associated with that keyword
}
return response()->json(['status'=>'success', 'data'=> $data, 'total' => count($data), 'code'=>200], 200);

Loading…
Cancel
Save