mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Add instructions on installing for development
This commit is contained in:
@@ -38,6 +38,24 @@ After updating composer, add the service provider to the `providers` array in `c
|
|||||||
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
|
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To install this package on only development systems, add the `--dev` flag to your composer command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
composer require --dev barryvdh/laravel-ide-helper
|
||||||
|
```
|
||||||
|
|
||||||
|
Instead of adding the service provider in the `config/app.php` file, add the following code to your `app/Providers/AppServiceProvider.php` file, within the `register()` method:
|
||||||
|
|
||||||
|
```php
|
||||||
|
public function register()
|
||||||
|
{
|
||||||
|
if($this->app->environment() !== 'production') {
|
||||||
|
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
|
||||||
|
}
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
### Automatic phpDoc generation for Laravel Facades
|
### Automatic phpDoc generation for Laravel Facades
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user