# laravel分权系统脚手架 **Repository Path**: liushuai05/auth_larvael ## Basic Information - **Project Name**: laravel分权系统脚手架 - **Description**: larvael 优化权限系统,本项目基于 【Laravel角色权限管理- Spatie版本】二开 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2019-07-20 - **Last Updated**: 2024-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Laravel角色权限管理- Spatie版本 This is a Laravel 5.4 adminpanel starter project with roles-permissions management based on [Spatie Laravel-permission package](https://github.com/spatie/laravel-permission), [AdminLTE theme](https://adminlte.io/) and [Datatables.net](https://datatables.net). We've also created almost identical project based on Joseph Silber's Bouncer package: [see here](https://github.com/LaravelDaily/laravel-roles-permissions-bouncer) Part of this project was generated automatically by [QuickAdminPanel system](https://quickadminpanel.com/). ![Roles Permissions screenshot](https://laraveldaily.com/wp-content/uploads/2018/11/roles-permissions-manager-spatie.png) ## 使用 这不是一个包,这是一个完整的Laravel项目,您应该使用起动器样板,然后添加您自己的自定义功能。 - 先克隆仓库 `git clone` - 复制 `.env.example` 文件为 `.env` 然后编辑数据库链接 - 执行 `composer install` - 执行 `php artisan key:generate` - 执行 `php artisan migrate --seed` 数据库迁移 - 创建文件链接`php artisan storage:link` (上传文件目录 public/storage)曾经因为无法访问上传的文件折腾了一个晚上都没弄出来 - 然后访问对应网址,账号密码为 `admin@admin.com` - `password` 与该用户可以创建多个角色/权限/用户,然后在代码中使用它们,通过“Gate”或“@can”等功能,在Laravel默认配置中,或查看Spatie包的帮助文档。 ## 许可信息 The [MIT license](http://opensource.org/licenses/MIT). ## 相关申明 我们不负责任何功能或缺陷在 **AdminLTE**, **Laravel-permission** 或 **datatable** 包或他们的未来版本中,如果你发现错误,请直接联系供应商。