getPermittingOwnerIds(Auth::user()); return Owner::query()->with(['ownerMaterials.material','customer'])->select(['id','name','customer_id'])->whereIn('id', $ownerIds)->get(); } }