-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29a9610
commit f4e2707
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` | ||
|
||
配置完成后,可以开始调试扩展包! |