查看命令列表

php bin/hyperf.php

启动hyperf服务

php bin/hyperf.php start

生成控制器

php bin/hyperf.php gen:Controller UserController

添加注解

use Hyperf\HttpServer\Annotation\AutoController;

/**
 * @AutoController()
 */

访问

curl 118.195.173.53:9501/user/index

生成Model

php bin/hyperf.php gen:model User

生成监听器

php bin/hyperf.php gen:listener RegisterListener

生成表单验证器

php bin/hyperf.php gen:request UserForm

生成配置文件

php bin/hyperf.php vendor:publish hyperf/view
 

相关文章:

  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-11-01
  • 2021-12-13
  • 2021-12-07
猜你喜欢
  • 2022-12-23
  • 2021-09-07
  • 2021-08-12
  • 2022-12-23
  • 2022-02-12
  • 2021-09-19
  • 2022-02-23
相关资源
相似解决方案