- 소프트 삭제된 필드 목록에 표시 (withTrashed) - 삭제된 필드 시각적 구분 (빨간 배경, '삭제됨' 배지) - 필드 복원 기능 추가 (restore API) - 필드 영구 삭제 기능 추가 (forceDelete API) - 체크박스 선택 및 일괄 삭제 기능 추가 - 시스템 필드 삭제 제한 해제 - 커스텀 모달 적용 (showConfirm, showDeleteConfirm)
38 lines
980 B
PHP
38 lines
980 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
use App\Services\SidebarMenuService;
|
|
use Illuminate\Support\Facades\View;
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
{
|
|
/**
|
|
* Register any application services.
|
|
*/
|
|
public function register(): void
|
|
{
|
|
// SidebarMenuService 싱글턴 등록
|
|
$this->app->singleton(SidebarMenuService::class);
|
|
}
|
|
|
|
/**
|
|
* Bootstrap any application services.
|
|
*/
|
|
public function boot(): void
|
|
{
|
|
// 사이드바에 메뉴 데이터 전달
|
|
View::composer('partials.sidebar', function ($view) {
|
|
$menuService = app(SidebarMenuService::class);
|
|
$menusBySection = $menuService->getMenusBySection();
|
|
|
|
$view->with([
|
|
'mainMenus' => $menusBySection['main'],
|
|
'toolsMenus' => $menusBySection['tools'],
|
|
'labsMenus' => $menusBySection['labs'],
|
|
]);
|
|
});
|
|
}
|
|
}
|