Skip to content

Commit

Permalink
Auto Package Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercd100 committed Aug 31, 2017
1 parent 3ad9034 commit 5022e4f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 2 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,21 +43,13 @@ php artisan migrate

## Installation

Version 4.x uses [Package Discovery](https://laravel.com/docs/5.5/packages#package-discovery). If you are using 3.x you will need to follow these [instructions.](https://github.com/tylercd100/lern/tree/3.8.2)

Install via [composer](https://getcomposer.org/) - In the terminal:
```bash
composer require tylercd100/lern
```

Now add the following to the `providers` array in your `config/app.php`
```php
Tylercd100\LERN\LERNServiceProvider::class
```

and this to the `aliases` array in `config/app.php`
```php
"LERN" => Tylercd100\LERN\Facades\LERN::class,
```

Then you will need to run these commands in the terminal in order to copy the config and migration files
```bash
php artisan vendor:publish --provider="Tylercd100\LERN\LERNServiceProvider"
Expand Down
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,13 @@
"doctrine/dbal": "~2.3"
},
"suggest": {
},
"extras": {
"providers": [
"Tylercd100\\LERN\\LERNServiceProvider"
],
"aliases": {
"LERN": "Tylercd100\\LERN\\Facades\\LERN"
}
}
}

0 comments on commit 5022e4f

Please sign in to comment.