value)->count(); if($check_datasource > 0){ return $this->resError("Failed to execute while processing another scraping"); } // dispatch(new SyncronizeSIMBG()); Artisan::call("app:scraping-data"); return $this->resSuccess(["message" => "Success execute scraping service on background, check status for more"]); } /** * Store a newly created resource in storage. */ public function store(Request $request) { // } /** * Display the specified resource. */ public function show(string $id) { // } /** * Update the specified resource in storage. */ public function update(Request $request, string $id) { // } /** * Remove the specified resource from storage. */ public function destroy(string $id) { // } }