Skip to content

Commit 2090b04

Browse files
committed
Include method trait by default
1 parent 8096b06 commit 2090b04

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22

33
Generate Model, attribute, relation, scope trait and repository for [Laravel 5 Boilerplate](https://github.com/rappasoft/laravel-5-boilerplate) via console command
44

5-
## Install (Laravel Boilerplate 5.4)
5+
## Install
66

77
```bash
88
composer require --dev hariadi/laravel-boilerplate-generator
99
```
1010

11+
### Laravel 5.5
12+
13+
Package already support auto discover and ready to use.
14+
15+
### Laravel 5.4
16+
1117
Register service provider by adding to your `config/app.php`:
1218

1319
```php

src/Commands/AppModelCommand.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function handle()
5454
{
5555
if (parent::handle() !== false) {
5656
$this->call('app:attribute', ['name' => $this->argument('name')]);
57+
$this->call('app:method', ['name' => $this->argument('name')]);
5758
$this->call('app:relationship', ['name' => $this->argument('name')]);
5859
$this->call('app:scope', ['name' => $this->argument('name')]);
5960
}

0 commit comments

Comments
 (0)