Commit 55cc7a78 by 赵增煜

去除toArray

parent b90a620e
...@@ -27,7 +27,7 @@ public function test() ...@@ -27,7 +27,7 @@ public function test()
public function dosageList(Request $request) public function dosageList(Request $request)
{ {
$authInfo = auth('api')->user(); $authInfo = auth('api')->user();
$dosages = DosageModel::where('pharmacy_id', $authInfo->id)->get()->toArray(); $dosages = DosageModel::where('pharmacy_id', $authInfo->id)->get();
return $this->success($dosages); return $this->success($dosages);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment