checkPermission($organization, 'organizations:view'); return new OrganizationResource($organization); } /** * Update organization * * @throws AuthorizationException */ public function update(Organization $organization, OrganizationUpdateRequest $request): OrganizationResource { $this->checkPermission($organization, 'organizations:update'); $organization->name = $request->input('name'); $organization->billable_rate = $request->input('billable_rate'); $organization->save(); return new OrganizationResource($organization); } }