Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.1 KB

README.md

File metadata and controls

77 lines (54 loc) · 2.1 KB

这个扩展包用来 汉化面包屑导航

php-badge Latest Laravel Admin Downloads this Month Downloads total Latest stable Licence

Screenshot

screenshot

Installation

First, install dependencies:

composer require james.xue/laravel-admin-breadcrumb

Second, Publish Extension Files

php artisan vendor:publish --tag=breadcrumb

Third,Override built-in views

app('view')->prependNamespace('admin', resource_path('views/admin'));

Fourth In the extensions section of the config/admin.php file, add some configuration that belongs to this extension.

 'extensions' => [
     'breadcrumb' => [
         'enable' => true,
     ]
 ]

注意事项

Version Laravel-Admin Version
1.1.2.1 < 1.7
^1.2.* 1.7 < 1.7.9
1.3.* 1.7.9

1.1.2.1 User

将控制器中

use Encore\Admin\Layout\Content;

替换

use James\Admin\Breadcrumb\Layout\Content;

1.2.* / 1.3.* User

将控制器中

use Encore\Admin\Controllers\AdminController;

替换

use James\Admin\Breadcrumb\BaseController;