tenant = app('tenant'); $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->estimates = new EstimatesRepository(); } protected function checkAuth() { $authCheckProvider = new AuthCheckProvider; return $authCheckProvider->checkLoggedIn(); } }