Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
cexll committed Feb 17, 2022
1 parent 75bbf6b commit 73b3f6f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# fast-framework
Hyperf 的一把梭骨架

```bash
```php
composer require yogcloud/framework
```

# 功能
提供从 `Controller` `Request` `Model` `Service` `Interface` 一整套生成命令
```bash
```php
$ php bin/hyperf
gen
gen:controller Create a new controller class
Expand All @@ -23,7 +23,7 @@ server


一键生成代码 快速CRUD
```bash
```php
php bin/hyperf.php gen:model test

Model App\Model\Test was created.
Expand All @@ -46,11 +46,11 @@ success:[/demo/app/Service/TestService.php]
}
```
添加之后需要更新一下`composer`缓存
```bash
```php
composer dump-autoload -o
```
生成
```
```php
php bin/hyperf gen:model test --path plugin/demo/test/src
```

Expand All @@ -64,7 +64,7 @@ php bin/hyperf gen:model test --path plugin/demo/test/src
期待你们发现其他小技巧欢迎Pr

1. `SelectRaw`
```
```php
'selectRaw' => 'sum(`id`) as sum'
```
# License
Expand Down

0 comments on commit 73b3f6f

Please sign in to comment.