fill($request->validated()); if (!$claimModel->saveOrFail()) { throw new CrmException('Api failed to store claim.'); } $claimModel->brand()->associate($service->brand); return response()->json(); } }