Skip to content

Commit

Permalink
Document a Lumen install
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Clark committed Aug 19, 2019
1 parent d5d8a88 commit 842ea54
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@ Then, use the `insights` Artisan command:
php artisan insights
```

## Within Lumen

Because we cannot use Artisan's publish command within a Lumen project you must manually copy the config file into your project:

```bash
cp vendor/nunomaduro/phpinsights/stubs/laravel.php config/insights.php
```

Then register the `phpinsights` provider and load the configuration into the application within your `bootstrap/app.php` file:

```php
$app->register(\NunoMaduro\PhpInsights\Application\Adapters\Laravel\InsightsServiceProvider::class);
$app->configure('insights');
```

And setup is done, so you can now run `phpinsights` with the following command:

```bash
php artisan insights
```


## With Docker

You can also use `phpinsights` via Docker:
Expand Down

0 comments on commit 842ea54

Please sign in to comment.