zhanghong/tpadmin

the admin framework based on thinkphp 6.0

Installs: 216

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 2

Open Issues: 2

Language:JavaScript

2.0.3 2019-11-28 06:17 UTC

This package is auto-updated.

Last update: 2024-03-28 16:16:18 UTC


README

the admin framework based on thinkphp 5.1.

StyleCI TravisCi

安装

最方便的安装方式就是使用Composer ( https://getcomposer.org/ ),在这之前务必先搭建好thinkphp5.1项目

1、安装 Tpadmin :

$ composer require zhanghong/tpadmin

2、配置

添加行为在 application/tags.php

return [

    'app_init'     => [
        \tpadmin\behavior\Boot::class,
    ],

    // ...
];

3、初始化和数据迁移

#初始化
$ php think tpadmin:init
#安装数据库迁移扩展包
$ composer require topthink/think-migration=2.0.*
#创建Tpadmin数据表
$ php think migrate:run
#添加初始化数据
$ php think tpadmin:seed

进入tpadmin后台

打开后台地址,例如:

http://yourdomain/admin