From 87ebe458e9b5787e6b65b9c4b62df9c2b13be7fe Mon Sep 17 00:00:00 2001 From: "Theodore R. Smith" Date: Wed, 17 Apr 2019 15:07:56 -0500 Subject: [PATCH] Removed confusing README installation instructions (#786) While installing this for my project, I didn't see the `--dev` instructions until I was literally editing this README for a pull request. Since laravel-ide-helper is only designed for development purposes, let's just remove the superfluous entry altogether. Smart devs who for some crazy reason need it on prod will know to remove the `--dev`, while less knowledgeable devs won't shoot themselves in the foot accidentally. --- readme.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/readme.md b/readme.md index f6c608f..e16741a 100644 --- a/readme.md +++ b/readme.md @@ -29,7 +29,7 @@ Note: You do need CodeComplice for Sublime Text: https://github.com/spectacles/C Require this package with composer using the following command: ```bash -composer require barryvdh/laravel-ide-helper +composer require --dev barryvdh/laravel-ide-helper ``` After updating composer, add the service provider to the `providers` array in `config/app.php` @@ -39,12 +39,6 @@ Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class, ``` **Laravel 5.5** uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. -To install this package on only development systems, add the `--dev` flag to your composer command: - -```bash -composer require --dev barryvdh/laravel-ide-helper -``` - In Laravel, instead of adding the service provider in the `config/app.php` file, you can add the following code to your `app/Providers/AppServiceProvider.php` file, within the `register()` method: ```php