Skip to content

Commit

Permalink
Include method trait by default
Browse files Browse the repository at this point in the history
  • Loading branch information
hariadi committed Nov 23, 2017
1 parent 8096b06 commit 2090b04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@

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

## Install (Laravel Boilerplate 5.4)
## Install

```bash
composer require --dev hariadi/laravel-boilerplate-generator
```

### Laravel 5.5

Package already support auto discover and ready to use.

### Laravel 5.4

Register service provider by adding to your `config/app.php`:

```php
Expand Down
1 change: 1 addition & 0 deletions src/Commands/AppModelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function handle()
{
if (parent::handle() !== false) {
$this->call('app:attribute', ['name' => $this->argument('name')]);
$this->call('app:method', ['name' => $this->argument('name')]);
$this->call('app:relationship', ['name' => $this->argument('name')]);
$this->call('app:scope', ['name' => $this->argument('name')]);
}
Expand Down

0 comments on commit 2090b04

Please sign in to comment.