Fetch the repository succeeded.
This action will force synchronization from 于破熊/BearAdmin, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
基于ThinkPHP5.1+AdminLTE的后台管理系统。TP5.0版本点击这里
在线 DEMO 账号密码:admin/admindemo
git clone https://github.com/yupoxiong/BearAdmin.git
或
git clone https://gitee.com/yupoxiong/BearAdmin.git
composer install
更改 /config/database.php
文件内的数据库配置选项,数据库编码推荐utf8mb4
。
php think migrate:run
具体可参考ThinkPHP5.1完全开发手册
访问/admin
,默认超级管理员的账号密码都为super_admin
。
<?php
use think\facade\Route;
/**
* api模块路由,如果不需要路由的直接忽略
* 示例的URL为/api/user
*/
Route::group('api', function () {
//登录接口
Route::post('auth/login','api/Auth/login');
//用户操作示例
Route::resource('user','api/User') ->only(['index','save', 'read', 'update','delete']);
//miss路由
Route::miss(function (){
return json([
'code' => 404,
'msg' => '接口不存在',
'data' => '',
], 404);
});
});
本项目采用大量的开源代码,包括ThinkPHP,AdminLTE等等。 部分代码可能署名已被某些前辈去掉,我也没来得及去查找具体的作者,如果有需要修改的地方,可以与我取得联系,i#yupoxiong.com(手动替换#即可)。 在此,对所有用到的开源代码作者表示由衷的感谢。如果大家需要Laravel版本的后台管理系统,可以使用LaravelAdmin。
交流QQ群:480018279
:stuck_out_tongue::bear::heart:
Sign in for post a comment
Comments ( 0 )