Download the PHP package bert-w/laravel-log-viewer without Composer
On this page you can find all versions of the php package bert-w/laravel-log-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bert-w/laravel-log-viewer
More information about bert-w/laravel-log-viewer
Files in bert-w/laravel-log-viewer
Package laravel-log-viewer
Short Description A fast Laravel log viewer to read any of your log files.
License MIT
Informations about the package laravel-log-viewer
bert-w/laravel-log-viewer
A fast log file viewer for Laravel that is easy to add and configure.
Features
- Compatible with Laravel 8 + 9 + 10
- Read big log files with ease without reaching the memory limit
- Includable in your own blade templates, or using a predefined layout
- Bootstrap 3 + 4 + 5 templates
- Bootstrap 5 comes with a Dark Mode setting
Dark Mode | Light Mode |
---|---|
Installation
-
Install package:
- (This happens automatically, except if you bypass package discovery) Add the service provider to your
config/app.php
:
The service provider sets up the views, routes, configuration and authentication. A \BertW\LaravelLogViewer\LogViewer::class
is also bound as a singleton to the service container. This allows you to inject the log viewer anywhere (for instance in your
custom controller) using $logViewer = app(\BertW\LaravelLogViewer\LogViewer::class)
.
-
a) (optional) Publish configuration file:
- b) or copy it manually into
config/logviewer.php
: ` - By default, your log viewer should be available at
/logviewer
. For customization, see the Customization section below.
Authorization
Setting up authorization for the log viewer is easy: within any loaded service provider (like AppServiceProvider
),
add the following lines in your register()
method:
By default, if no custom authorization callback is given, the log viewer is only accessible in your local
environment.
Customization
Including the log viewer in one of your own templates can be done simply by modifying the view file resources/views/vendor/logviewer/index.blade.php
(available after the publish-command), which has the following default:
The standard layout contains pre-included Bootstrap CSS/JS files linked from https://cdn.jsdelivr.net
.
All versions of laravel-log-viewer with dependencies
illuminate/http Version *
illuminate/filesystem Version *
illuminate/pagination Version *