Skip to content

基于laravel 5.6 与 自带的gate来做权限认证,前后端用户分表分别登录

Notifications You must be signed in to change notification settings

wbj307542607/laravel5.6-admin

Repository files navigation

Build Status Total Downloads Latest Stable Version License

About Laravel

Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as:

Laravel is accessible, yet powerful, providing tools needed for large, robust applications.

Learning Laravel

Laravel has the most extensive and thorough documentation and video tutorial library of any modern web application framework, making it a breeze to get started learning the framework.

If you're not in the mood to read, Laracasts contains over 1100 video tutorials on a range of topics including Laravel, modern PHP, unit testing, JavaScript, and more. Boost the skill level of yourself and your entire team by digging into our comprehensive video library.

Laravel Sponsors

We would like to extend our thanks to the following sponsors for helping fund on-going Laravel development. If you are interested in becoming a sponsor, please visit the Laravel Patreon page:

Contributing

Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the Laravel documentation.

Security Vulnerabilities

If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [email protected]. All security vulnerabilities will be promptly addressed.

License

The Laravel framework is open-sourced software licensed under the MIT license.

说明

基于laravel 5.6 与 自带的gate来做权限认证 ( 本人非big-pang本人,只是在使用过程中觉得项目好用,所以在5.3的基础上做了一次升级,原5.3地址:https://github.com/big-pang/laravel5.3-admin ) 开箱即用的后台模板,菜单栏都是基于权限来生成 前后端用户分表分别登录 集成了laravel-debugbar 超好用调试工具 带有日志解析查看模块

本项目可以用于生产

截图

laravel rbac

rbac

安装

  • git clone 到本地
  • 执行 composer install,创建好数据库
  • 配置 .env 中数据库连接信息,没有.env请复制.env.example命名为.env
  • 执行 php artisan key:generate
  • 执行 php artisan migrate
  • 执行 php artisan db:seed --class=AdminInitSeeder
  • 键入 '域名/admin/login'(后台登录)
  • 默认后台账号:[email protected] 密码:root

使用

  • 用户管理中的权限管理添加顶级权限 比如用户管理, 'admin.user' 只有两段的做左边的菜单栏, 列表页统一为'admin.XXXX.index' 具体部分可以参照路由与源码,也可以QQ我176608671,1802207017

About

基于laravel 5.6 与 自带的gate来做权限认证,前后端用户分表分别登录

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages