Don't use the config facade for settings
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
</div>
|
||||
<div class="col-sm-8">
|
||||
<ul class="list-inline">
|
||||
@if($current_user || Config::get('setting.dashboard_login_link'))
|
||||
@if($current_user || $dashboard_link)
|
||||
<li>
|
||||
<a class="btn btn-link" href="/dashboard">{{ trans('dashboard.dashboard') }}</a>
|
||||
</li>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<li><a href="{{ route('auth.logout') }}">{{ trans('dashboard.logout') }}</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@elseif(Config::get('setting.dashboard_login_link'))
|
||||
@elseif($dashboard_link)
|
||||
<li><a href="/dashboard">{{ trans('dashboard.dashboard') }}</a></li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user