0
Voyager를 사용하고 있습니다. 사용자가 admin 인 경우 환영 페이지에서 하나 이상의 메뉴 항목을 참조하여 해결하고 싶습니다.Laravel Voyager : 사용자가 관리자 인 경우에만 메뉴 항목을 표시합니다.
미리 답변 해 주셔서 감사합니다.
<body>
<div class="flex-center position-ref full-height">
@if (Route::has('login'))
<div class="top-right links">
@auth
<a href="{{ url('/home') }}">Home</a>
@else
<a href="{{ route('login') }}">Login</a>
<a href="{{ route('register') }}">Register</a>
@endauth
</div>
@endif
<div class="content">
<div class="title m-b-md">
Laravel
</div>
<div class="links">
<a href="https://laravel.com/docs">Documentation</a>
<a href="https://laracasts.com">Laracasts</a>
<a href="https://laravel-news.com">News</a>
<a href="https://forge.laravel.com">Forge</a>
<a href="https://github.com/laravel/laravel">GitHub</a>
</div>
</div>
</div>
</body>
어떻게 메뉴를 구성하고 있습니까? 관련 컨트롤러의 방법 및 뷰를 보여줍니다. – Camilo