Skip to content

Commit

Permalink
Changed: 测试方式说明
Browse files Browse the repository at this point in the history
  • Loading branch information
helingfeng committed Nov 18, 2018
1 parent 29a9610 commit f4e2707
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Empty file removed docs/index.html
Empty file.
45 changes: 45 additions & 0 deletions tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
## Laravel 扩展包调试方法

- 准备一份 Laravel 框架代码

```bash
git clone https://github.com/laravel/laravel.git
```

- 将扩展包下载到 Laravel 框架根目录下

```bash
cd laravel
mkdir packages
git clone https://github.com/Chester-Hee/background-tasks.git
```

- 配置 composer.json

```json
"autoload": {
"psr-4": {
"Chester\\BackgroundMission\\": "packages/background-tasks/src/"
}
}
```

- 配置依赖包 Provider

```bash
composer install
```

config/app.php 添加

```php
Chester\BackgroundMission\Providers\MissionProvider::class
```

初始化 Laravel 框架 .env

```bash
cp .env.example .env
```

配置完成后,可以开始调试扩展包!

0 comments on commit f4e2707

Please sign in to comment.