Skip to content

Commit

Permalink
no settings for guest
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 21, 2019
1 parent e1027b9 commit 06c6249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/ViewComposers/All.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function compose(View $view)
$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]);
}
Expand Down

0 comments on commit 06c6249

Please sign in to comment.