定制 foostart/package-acl 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

foostart/package-acl

最新稳定版本:12.2.9

Composer 安装命令:

composer require foostart/package-acl

包简介

Laravel authentication and ACL package with a cool admin panel. Laravel 12.x

README 文档

README

git remote set-url origin git@github.com-foostart:foostart/package-acl.git

  • Access control list
  • Verson: 12.x
  • Support: Laravel 12.x
  • Contact foostart.com@gmail.com to support other versions
  • References:

Requirements

  • Config database with .env file
  • Laravel 12.x
  • PHP 8.3

Requirements

  • Install with composer: composer require foostart/package-acl

Step 1: Regist package to Laravel

Now open the file config/app.php and add to the providers option the following line:

  1. Foostart\Acl\Authentication\AuthenticationServiceProvider::class,
  2. Foostart\Category\CategoryServiceProvider::class,

Step 2: Regist middleware to Laravel

Now open the file app/Http/Kernel.php and add the following lines to your routeMiddleware array:

  1. 'admin_logged' => \Foostart\Acl\Http\Middleware\AdminLogged::class,
  2. 'logged' => \Foostart\Acl\Http\Middleware\Logged::class,
  3. 'can_see' => \Foostart\Acl\Http\Middleware\CanSee::class,
  4. 'has_perm' => \Foostart\Acl\Http\Middleware\HasPerm::class,
  5. 'in_context' => \Foostart\Category\Middleware\InContext::class,

Step 3: Delete user and password migration file in database/migrations

Step 4: Install

  1. php artisan authentication:install
Which provider or tag's files would you like to publish?:
Select option [* ] Provider: Foostart\Acl\Authentication\AuthenticationServiceProvider
  1. php artisan vendor:publish --provider="Foostart\Category\CategoryServiceProvider" --force
  2. Ref: https://packagist.org/packages/foostart/package-post

Tips 1: Publish

php artisan vendor:publish --force

统计信息

  • 总下载量: 25
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-05-05