From 06c62499c0955a40d678d5aa7a887f6f48c1eabd Mon Sep 17 00:00:00 2001 From: denisdulici Date: Thu, 21 Feb 2019 15:40:52 +0300 Subject: [PATCH] no settings for guest --- app/Http/ViewComposers/All.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/ViewComposers/All.php b/app/Http/ViewComposers/All.php index 86093ec29..0a57ac881 100644 --- a/app/Http/ViewComposers/All.php +++ b/app/Http/ViewComposers/All.php @@ -26,7 +26,7 @@ class All $auth_user = auth()->user(); // Share date format - $date_format = $this->getCompanyDateFormat(); + $date_format = $auth_user ? $this->getCompanyDateFormat() : 'd F Y'; $view->with(['auth_user' => $auth_user, 'date_format' => $date_format]); }