Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,16 @@ public function tools()

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Configuration

You can configure the behavior of the log view within a config file. First, just publish the default one:

```
php artisan vendor:publish --tag=config
```

Now you can edit the settings in the file `config/log-viewer.php`.

## Credits

- [PHPJunior](https://github.com/PHPJunior/nova-logs)
Expand Down
2 changes: 1 addition & 1 deletion dist/js/tool.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions resources/views/navigation.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
<path fill="var(--sidebar-icon)" class="heroicon-ui" d="M6 2h9a1 1 0 0 1 .7.3l4 4a1 1 0 0 1 .3.7v13a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4c0-1.1.9-2 2-2zm9 2.41V7h2.59L15 4.41zM18 9h-3a2 2 0 0 1-2-2V4H6v16h12V9zm-2 7a1 1 0 0 1-1 1H9a1 1 0 0 1 0-2h6a1 1 0 0 1 1 1zm0-4a1 1 0 0 1-1 1H9a1 1 0 0 1 0-2h6a1 1 0 0 1 1 1zm-5-4a1 1 0 0 1-1 1H9a1 1 0 1 1 0-2h1a1 1 0 0 1 1 1z"/>
</svg>
<span class="sidebar-label">
Log Viewer
{{ __('Log Viewer') }}
</span>
</h3>

<ul class="list-reset mb-8">
<li class="leading-wide mb-4 text-sm">
<router-link :to="{name: 'nova-log-viewer-dashboard'}" class="text-white ml-8 no-underline dim">
Dashboard
{{ __('Dashboard') }}
</router-link>
</li>
<li class="leading-wide mb-4 text-sm">
<router-link :to="{name: 'nova-log-viewer-list'}" class="text-white ml-8 no-underline dim">
Logs
{{ __('Logs') }}
</router-link>
</li>
</ul>
3 changes: 2 additions & 1 deletion src/Http/Controllers/NovaLogViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class NovaLogViewerController extends Controller
private $logViewer;

/** @var int */
protected $perPage = 20;
protected $perPage;

/**
* NovaLogViewerController constructor.
Expand All @@ -28,6 +28,7 @@ class NovaLogViewerController extends Controller
public function __construct(LogViewerContract $logViewer)
{
$this->logViewer = $logViewer;
$this->perPage = config("log-viewer.per-page");
}

/**
Expand Down