/** * Registers model observers */ protected function observers() { Models\Website::observe(new Observers\WebsiteObserver()); Models\Hostname::observe(new Observers\HostnameObserver()); Models\Tenant::observe(new Observers\TenantObserver()); }
/** * Create a pagination object * @param int $per_page * @return mixed */ public function paginated($per_page = 20) { return $this->hostname->paginate($per_page); }