Skip to content

Commit

Permalink
Laravel 5.5 package auto discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
hariadi committed Nov 22, 2017
1 parent 5780e00 commit 8096b06
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ You must see:
```bash
app
app:attribute Create a new attribute traits for model
app:method Create a new method traits for model
app:model Create a new Eloquent model class with attribute, relationship and scope traits
app:relationship Create a new relationship traits for model
app:repository Create a new repository class
Expand All @@ -57,6 +58,13 @@ php artisan app:attribute ModelName
```
Generate `ModelNameAttribute.php` under `Models/Traits/Attribute` directory.

### Generate Method

```bash
php artisan app:method ModelName
```
Generate `ModelNameMethod.php` under `Models/Traits/Method` directory.

### Generate Relation

```bash
Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,12 @@
"require-dev": {
"phpunit/phpunit": "^6.0",
"mockery/mockery": "^0.9.9"
}
},
"extra": {
"laravel": {
"providers": [
"Hariadi\\Boilerplate\\GeneratorCommandServiceProvider"
]
}
}
}

0 comments on commit 8096b06

Please sign in to comment.