GithubHelp home page GithubHelp logo

irooit / larke-admin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from deatil/larke-admin

1.0 2.0 0.0 6.71 MB

larke-admin 是基于 laravel8 版本的后台快速开发框架,完全api接口化,适用于前后端分离的项目

License: Apache License 2.0

PHP 100.00%

larke-admin's Introduction

larke-admin 后台快速开发框架

项目介绍

  • larke-admin 是基于 laravel8 版本的后台快速开发框架,完全api接口化,适用于前后端分离的项目
  • 基于 JWT 的用户登陆态管理
  • 权限判断基于 php-casbinRBAC 授权
  • 本项目为 后台api服务,后台前端页面可查看 Larke Admin Frontend 项目

环境要求

  • PHP >= 7.3.0
  • Laravel >= 8.0.0
  • Fileinfo PHP Extension

截图预览

login

index

admin

admin-access

attach

config

menus

rule

更多截图 Larke Admin 后台截图

安装步骤

首先安装 laravel 8.*,并确认连接数据库的配置没有问题,开始执行以下命令

composer require lake/larke-admin

然后运行下面的命令,推送配置文件

php artisan vendor:publish --tag=larke-admin-config

运行完命令后,你可以找到 config/larkeadmin.phpconfig/larkeauth.phpconfig/larkeauth-rbac-model.conf 三个配置文件

最后运行下面的命令安装完成系统

php artisan larke-admin:install

你可能第一次安装需要运行以下命令导入路由权限规则

php artisan larke-admin:import-route

如果遇到跨域问题,你可以修改官方的配置文件 config/cors.php,在 paths 列表增加系统接口前缀 admin-api/*

如果官方没有配置,你也可以在 App\Http\Kernel->middleware 属性添加

\Larke\Admin\Middleware\RequestOptions::class,

后台登陆账号:admin 及密码 123456

扩展开发

  • 扩展开发可查看 docs/extension/Test 示例
  • 扩展目录默认为 /extension 目录
  • composer 加载插件,在 ServiceProvider->register() 注册 Extension::extend('Test', Test\TestService::class); 即可

特别鸣谢

感谢以下的项目,排名不分先后

laravel/framework

lake/larke-jwt (基于 lcobucci/jwt 更新)

casbin/casbin

composer/semver

开源协议

  • larke-admin 遵循 Apache2 开源协议发布,在保留本系统版权的情况下提供个人及商业免费使用。

版权

larke-admin's People

Contributors

deatil avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.