james.xue / laravel-admin-breadcrumb
Breadcrumb Sinicization
Fund package maintenance!
james.dmzfa.com/about#pay
Installs: 1 682
Dependents: 0
Suggesters: 0
Security: 0
Stars: 17
Watchers: 3
Forks: 3
Open Issues: 1
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-10-27 19:11:06 UTC
README
这个扩展包用来 汉化面包屑导航
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,
]
]
注意事项
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;