public function boot(MemberTab $tab, PackageList $packages) { if (!$this->app->routesAreCached()) { require __DIR__ . '/Http/routes.php'; } $this->loadViewsFrom(__DIR__ . '/resources/views', 'ncells'); $this->publishes([__DIR__ . '/database/migrations/' => database_path('migrations')], 'migrations'); $tab->addMemberTabItemInfo('profile', 'Profile', function ($member_id) { return route('ncells::url.auth.member_profile', $member_id); }); $packages->addPackageInfo('member', 'Members', function () { return '/admin/members'; }); }
public function boot(GateContract $gate, MemberTab $tab, PackageList $packages) { $this->registerPolicies($gate); if (!$this->app->routesAreCached()) { require __DIR__ . '/Http/routes.php'; } $this->loadViewsFrom(__DIR__ . '/resources/views', 'ncells'); $this->publishes([__DIR__ . '/database/migrations/' => database_path('migrations')], 'migrations'); $tab->addMemberTabItemInfo('til', 'TIL', function ($member_id) { return route('ncells::url.til.member_til', $member_id); }); $packages->addPackageInfo('qna', 'Q&A', function () { return 'TilServiceProvider.php를 수정하세요'; }); }