mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
return error with json
This commit is contained in:
@@ -28,7 +28,9 @@ class CompanyController extends Controller
|
||||
|
||||
return response($output);
|
||||
}
|
||||
else{return "error";}
|
||||
else
|
||||
|
||||
return response()->json(['success'=> false, 'error'=>'Company not found'], 404);
|
||||
}
|
||||
|
||||
public function update(Request $request)
|
||||
|
||||
Reference in New Issue
Block a user