Exemple #1
0
 /**
  * Return an array of enabled locales
  * @return array
  */
 private function getEnabledLocales()
 {
     return json_decode($this->setting->get('core::locales', '{"en"}'));
 }
Exemple #2
0
 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());
 }
Exemple #3
0
 public function compose(View $view)
 {
     $limit = $this->setting->get('blog::latest-posts-amount', locale(), 5);
     $view->with('latestPosts', $this->post->latest($limit));
 }