Skip to content

Commit

Permalink
Merge pull request #138 from tabacitu/package-autodiscovery
Browse files Browse the repository at this point in the history
Added Laravel 5.5 Support
  • Loading branch information
Laracasts authored Nov 14, 2017
2 parents 4e9ce5d + 32bbe27 commit bf6aa82
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,12 @@
"psr-4": {
"Laracasts\\Generators\\": "src/"
}
},
"extra": {
"laravel": {
"providers": [
"Laracasts\\Generators\\GeneratorsServiceProvider"
]
}
}
}
16 changes: 15 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,21 @@ L5 includes a bunch of generators out of the box, so this package only needs to

*With one or two more to come.*

## Usage

## Usage on Laravel 5.5

### Step 1: Install Through Composer

```
composer require laracasts/generators --dev
```

### Step 2: Run Artisan!

You're all set. Run `php artisan` from the console, and you'll see the new commands in the `make:*` namespace section.


## Usage on Laravel 5.4 and 5.3

### Step 1: Install Through Composer

Expand Down
11 changes: 11 additions & 0 deletions src/Commands/MigrationMakeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,17 @@ public function __construct(Filesystem $files)
$this->composer = app()['composer'];
}

/**
* Alias for the fire method.
*
* In Laravel 5.5 the fire() method has been renamed to handle().
* This alias provides support for both Laravel 5.4 and 5.5.
*/
public function handle()
{
$this->fire();
}

/**
* Execute the console command.
*
Expand Down

0 comments on commit bf6aa82

Please sign in to comment.