diff --git a/composer.json b/composer.json index cf857d6..f3901ae 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "moell/laravel-layui-admin", + "name": "maojian/laravel-layui-admin", "description": "基于 Laravel, Layui 构建的 RBAC 后台管理系统。", "keywords": ["laravel", "admin", "layui", "layui admin", "laravel layui admin", "laravel admin"], "type": "library", diff --git a/src/Http/Controllers/IndexController.php b/src/Http/Controllers/IndexController.php index 57ba68f..cb00d98 100644 --- a/src/Http/Controllers/IndexController.php +++ b/src/Http/Controllers/IndexController.php @@ -7,6 +7,6 @@ class IndexController extends Controller { public function index() { - return view("admin::layouts.admin"); + return view("admin::index"); } } \ No newline at end of file diff --git a/src/Providers/LayuiAdminServiceProvider.php b/src/Providers/LayuiAdminServiceProvider.php index 5e94efc..acf3e53 100644 --- a/src/Providers/LayuiAdminServiceProvider.php +++ b/src/Providers/LayuiAdminServiceProvider.php @@ -45,8 +45,9 @@ public function register() private function viewComposer() { View::composer( - 'admin::layouts.admin', 'Moell\LayuiAdmin\ViewComposers\AdminComposer' + 'admin::index', 'Moell\LayuiAdmin\ViewComposers\AdminComposer' ); + view()->share('siteName' ,'nft'); } private function registerMigrations() diff --git a/views/admin_user/index.blade.php b/views/admin_user/index.blade.php index 3f0a00c..6821539 100644 --- a/views/admin_user/index.blade.php +++ b/views/admin_user/index.blade.php @@ -1,6 +1,6 @@ @section("title", "管理员管理") -@extends("admin::layouts.admin") +@extends("admin::public.layout") @section("breadcrumb")