tenant = currentTenant(); $this->users = new UserRepository(); $this->costUnits = new CostUnitRepository(); $this->pageTexts = new PageTextRepository(); $this->invoices = new InvoiceRepository(); $this->events = new EventRepository(); $this->eventParticipants = new EventParticipantRepository(); $this->participantRefunds = new ParticipantRefundRepository(); $this->estimates = new EstimatesRepository(); $this->paymentMethods = new PaymentMethodRepository(); $this->adminUsers = new AdminUserRepository(); $this->adminTenants = new AdminTenantRepository(); $this->adminParentGroups = new AdminParentGroupRepository(); $this->globalSettings = app(GlobalSettingRepository::class); } protected function checkAuth() { $authCheckProvider = new AuthCheckProvider; return $authCheckProvider->checkLoggedIn(); } }