/** * Return an array of enabled locales * @return array */ private function getEnabledLocales() { return json_decode($this->setting->get('core::locales', '{"en"}')); }
public function compose(View $view) { $view->with('sitename', $this->setting->get('core::site-name', App::getLocale())); $view->with('cssFiles', $this->assetPipeline->allCss()); $view->with('jsFiles', $this->assetPipeline->allJs()); }
public function compose(View $view) { $limit = $this->setting->get('blog::latest-posts-amount', locale(), 5); $view->with('latestPosts', $this->post->latest($limit)); }