/** * @return \Illuminate\Contracts\View\View */ public function getSite() { $this->share('title', $this->setting->get('site.title')); $this->share('domain', $this->setting->get('site.domain')); $this->share('beian', $this->setting->get('site.beian')); $this->share('email', $this->setting->get('site.email')); $this->share('statistics', $this->setting->get('site.statistics')); $this->share('copyright', $this->setting->get('site.copyright')); $this->share('company', $this->setting->get('site.company')); $this->share('message', $this->session->get('message')); $this->share('home', $this->setting->get('site.home')); $this->share('pages', Page::all()); return $this->view('config.site'); }
/** * @return \Notadd\Foundation\Database\Eloquent\Collection|static[] */ public function all() { return Model::all(); }