它在project_name/resources/views/vendor/backpack/base/layout.blad.php
<header class="main-header">
<!-- Logo -->
<a href="{{ url('') }}" class="logo"> <!-- Here's what r u looking for -->
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini">{!! config('backpack.base.logo_mini') !!}</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">{!! config('backpack.base.logo_lg') !!}</span>
</a>
<!-- Header Navbar: style can be found in header.less -->
<nav class="navbar navbar-static-top" role="navigation">
<!-- Sidebar toggle button-->
<a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
<span class="sr-only">{{ trans('backpack::base.toggle_navigation') }}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
@include('backpack::inc.menu')
</nav>
</header>
1路(推薦)
{!! config('backpack.base.logo_mini') !!}
到
{{ DB::table('users')->where('users_id','=', '1')->get('users_name') }}
或什麼的。 第二路
在project_name/config/backpack/base.php
// Menu logos
'logo_lg' => '<b>Back</b>pack',
'logo_mini' => '<b>B</b>p',
編輯'<b>Back</b>pack'
爲您定製大尺寸的標誌和編輯'<b>B</b>p'
爲您定製的迷你尺寸的標誌。
UPDATE
如果你想顯示身份驗證的用戶名,
{{ Auth::user()->user_name }}