Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcat323 committed Jan 7, 2019
1 parent f8f164d commit cc26b9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
12 changes: 7 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/vendor
composer.phar
composer.lock
.DS_Store
.idea/
/vendor
composer.phar
composer.lock
.DS_Store
.idea/
nbproject/
/nbproject/private/
11 changes: 0 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,6 @@ Or add the following to your composer.json's require section and `composer updat
}
```

Then register the service provider in your `app/Providers/AppServiceProvider.php` to only be included for the local environment:

```php
public function register()
{
if ($this->app->environment() == 'local') {
$this->app->register(\MaddHatter\ViewGenerator\ServiceProvider::class);
}
}
```

Or if you always want it included regardless of environment, just add it to the `providers` array in `config/app.php`

## Usage
Expand Down

0 comments on commit cc26b9a

Please sign in to comment.