foostart / package-acl
Laravel认证和ACL包,拥有酷炫的Admin面板。支持Laravel 7x
2022.09.041542
2022-04-25 08:50 UTC
Requires
Requires (Dev)
- fzaninotto/faker: ~1.4
- mockery/mockery: 0.9.*
- phpunit/phpunit: ~5.7
- sebastian/exporter: ^2.0
- 2022.09.041542
- 2022.04.251554
- 2022.02.091
- 2022.02.09
- 2021.12.26
- 11.1.1
- 11.1.0
- 10.0.10
- 10.0.9
- 10.0.8
- 10.0.7
- 10.0.6
- 10.0.5
- 10.0.4
- 10.0.3
- 10.0.2
- 10.0.1
- 10.0.0
- 9.42.2
- 9.42.1
- 9.0.0
- 8.25.0
- 8.24.1
- 8.0.5
- 8.0.4
- 8.0.3
- 8.0.2
- 8.0.1
- 8.0.0
- 7.23.0
- 7.0.1
- 7.0.0
- 5.0.2
- 5.0.1
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0
- 3.0.9
- 3.0.8
- 3.0.7
- 3.0.6
- 3.0.5
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 1.0.2
- 1.0.1
- 1.0.0
- dev-2-laravel-9x/1-core
- dev-1-review/2-fixbug
- dev-1-review/1-overview
This package is auto-updated.
Last update: 2024-09-21 02:47:30 UTC
README
- 访问控制列表
- 版本:8.x
- 支持:Laravel 8x
- 联系 foostart.com@gmail.com 以支持其他版本
要求
- 使用.env文件配置数据库
要求
- 使用composer安装:composer require foostart/package-acl
步骤1:将包注册到Laravel
现在打开文件 config/app.php 并将以下行添加到 providers 选项中
- Foostart\Acl\Authentication\AuthenticationServiceProvider::class,
- Foostart\Category\CategoryServiceProvider::class,
步骤2:将中间件注册到Laravel
现在打开文件 app/Http/Kernel.php 并将以下行添加到您的 routeMiddleware 数组中
- 'admin_logged' => \Foostart\Acl\Http\Middleware\AdminLogged::class,
- 'logged' => \Foostart\Acl\Http\Middleware\Logged::class,
- 'can_see' => \Foostart\Acl\Http\Middleware\CanSee::class,
- 'has_perm' => \Foostart\Acl\Http\Middleware\HasPerm::class,
- 'in_context' => \Foostart\Category\Middleware\InContext::class,
步骤3:在数据库/migrations中删除用户和密码迁移文件
步骤4:安装
- php artisan authentication:install
Which provider or tag's files would you like to publish?:
Select option [* ] Provider: Foostart\Acl\Authentication\AuthenticationServiceProvider
- php artisan vendor:publish --provider="Foostart\Category\CategoryServiceProvider" --force
- 参考:https://packagist.org.cn/packages/foostart/package-post