Don't use the config facade for settings
This commit is contained in:
@@ -85,5 +85,6 @@ class AppComposer
|
|||||||
$view->withSiteTitle($this->config->get('setting.app_name'));
|
$view->withSiteTitle($this->config->get('setting.app_name'));
|
||||||
$view->withFontSubset($this->config->get('langs.'.$this->config->get('app.locale').'.subset', 'latin'));
|
$view->withFontSubset($this->config->get('langs.'.$this->config->get('app.locale').'.subset', 'latin'));
|
||||||
$view->withOnlyDisruptedDays($this->config->get('setting.only_disrupted_days'));
|
$view->withOnlyDisruptedDays($this->config->get('setting.only_disrupted_days'));
|
||||||
|
$view->withDashboardLink($this->config->get('setting.dashboard_login_link'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-sm-8">
|
<div class="col-sm-8">
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
@if($current_user || Config::get('setting.dashboard_login_link'))
|
@if($current_user || $dashboard_link)
|
||||||
<li>
|
<li>
|
||||||
<a class="btn btn-link" href="/dashboard">{{ trans('dashboard.dashboard') }}</a>
|
<a class="btn btn-link" href="/dashboard">{{ trans('dashboard.dashboard') }}</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
<li><a href="{{ route('auth.logout') }}">{{ trans('dashboard.logout') }}</a></li>
|
<li><a href="{{ route('auth.logout') }}">{{ trans('dashboard.logout') }}</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@elseif(Config::get('setting.dashboard_login_link'))
|
@elseif($dashboard_link)
|
||||||
<li><a href="/dashboard">{{ trans('dashboard.dashboard') }}</a></li>
|
<li><a href="/dashboard">{{ trans('dashboard.dashboard') }}</a></li>
|
||||||
@endif
|
@endif
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user