Get default value on config repository

This commit is contained in:
Joseph Cohen
2015-05-20 12:56:59 -05:00
parent 33f6bf167c
commit 10bcbc6169
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -25,8 +25,8 @@ class ThemeComposer
*/
public function compose(View $view)
{
$view->with('themeBackgroundColor', Setting::get('style_background_color') ?: null);
$view->with('themeTextColor', Setting::get('style_text_color') ?: null);
$view->with('themeBackgroundColor', Setting::get('style_background_color'));
$view->with('themeTextColor', Setting::get('style_text_color'));
$viewData = $view->getData();
$themeView = array_only($viewData, preg_grep('/^theme/', array_keys($viewData)));