thinkphp6 学习

创建应用

php think build admin

创建应用里面的model
php think make:model admin@test/t1

载入migration包,用来管理表结构
composer require topthink/think-migration

创建表管理操作类

php think migrate:create Salesman

执行表操作类运行表结构

php think migrate:run -v 

创建一个数据表播种机(自动生成此表的数据)

php think seed:create Salesman

执行播种

php think seed:run

你可能感兴趣的:(#,thinkphp)