재정의 하는 방법은 모르겠다.
강제로 바꾸자
nova/resources/views/resources/navigation.blade.php
노란 부분을 변경하자
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | @if (count(\Laravel\Nova\Nova::availableResources(request()))) <h3 class="flex items-center font-normal text-white mb-6 text-base no-underline"> <svg class="sidebar-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"> <path fill="var(--sidebar-icon)" d="M3 1h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2H3c-1.1045695 0-2-.8954305-2-2V3c0-1.1045695.8954305-2 2-2zm0 2v4h4V3H3zm10-2h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2h-4c-1.1045695 0-2-.8954305-2-2V3c0-1.1045695.8954305-2 2-2zm0 2v4h4V3h-4zM3 11h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2H3c-1.1045695 0-2-.8954305-2-2v-4c0-1.1045695.8954305-2 2-2zm0 2v4h4v-4H3zm10-2h4c1.1045695 0 2 .8954305 2 2v4c0 1.1045695-.8954305 2-2 2h-4c-1.1045695 0-2-.8954305-2-2v-4c0-1.1045695.8954305-2 2-2zm0 2v4h4v-4h-4z" /> </svg> <span class="sidebar-label">{{ __('Resources') }}</span> </h3> @foreach($navigation as $group => $resources) @if (count($groups) > 1) <h4 class="ml-8 mb-4 text-xs text-white-50% uppercase tracking-wide">{{ $group }}</h4> @endif <ul class="list-reset mb-8"> @foreach($resources as $resource) <li class="leading-tight mb-4 ml-8 text-sm"> <router-link :to="{ name: 'index', params: { resourceName: '{{ $resource::uriKey() }}' } }" class="text-white text-justify no-underline dim"> {{ $resource::label() }} </router-link> </li> @endforeach </ul> @endforeach @endif | cs |
Dashboards 변경은
nova/resources/views/dashboard/navigation.blade.php
아래 처럼 변경하면 된다.
1 | <span class="text-white sidebar-label">SPC 뷰어</span> | cs |
'라라벨 > NOVA' 카테고리의 다른 글
nova Gravatar 사용자 사진으로 변경하기 (0) | 2020.01.05 |
---|---|
글로벌 검색 왼쪽 laravel 변경하기 (0) | 2020.01.05 |
nova 사용자 정의 필드만들기 (0) | 2020.01.04 |
nova 맞춤도구 만들기 (0) | 2020.01.04 |
nova 측정항목정의(value, trend, partition) (0) | 2020.01.04 |