add edit provider prime center
This commit is contained in:
@@ -31,6 +31,16 @@ class OrganizationController extends Controller
|
||||
return response()->json(OrganizationResource::collection($organizations));
|
||||
}
|
||||
|
||||
public function organizations()
|
||||
{
|
||||
$data = Organization::hospital()->select('id', 'name', 'code')->get();
|
||||
|
||||
return response()->json([
|
||||
'status' => 'success',
|
||||
'data' => OrganizationResource::collection($data)
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
* @return Renderable
|
||||
|
||||
Reference in New Issue
Block a user