Skip to content

Commit

Permalink
Added ability to publish log.blade.php (#87)
Browse files Browse the repository at this point in the history
* Update LaravelLogViewerServiceProvider.php

Added ability to publish log.blade.php into `/resources/views/vendor/laravel-log-viewer/`  Can be published with
```
php artisan vendor:publish --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=views
```

* Update README.md
  • Loading branch information
jeremykenedy authored and rap2hpoutre committed Apr 6, 2017
1 parent f95d4cf commit badd781
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');

Go to `http://myapp/logs` or some other route

**Optionally** publish `log.blade.php` into `/resources/views/vendor/laravel-log-viewer/` for easy customization:

```
php artisan vendor:publish --provider="Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=views
```

Install (Lumen)
---------------

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ public function boot()
if (method_exists($this, 'loadViewsFrom')) {
$this->loadViewsFrom(__DIR__.'/../../views', 'laravel-log-viewer');
}

if (method_exists($this, 'publishes')) {
$this->publishes([
__DIR__.'/../../views' => base_path('/resources/views/vendor/laravel-log-viewer'),
], 'views');
}
}

/**
Expand Down

0 comments on commit badd781

Please sign in to comment.