1. Go to this page and download the library: Download chaihao/laravel-rap-admin library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
chaihao / laravel-rap-admin example snippets
# 认证相关路由
POST /auth/login # 登录
POST /auth/register # 注册
POST /auth/staff_info # 获取用户信息
POST /auth/logout # 退出登录
# 权限管理路由
POST /permission/add # 添加权限
POST /permission/create_role # 创建角色
POST /permission/assign_role # 分配角色
POST /permission/get_all # 获取权限列表
POST /permission/get_all_roles # 获取角色列表
POST /permission/sync_role_permissions # 同步角色权限