pharit / laravel-logs-viewer
A simple Laravel logs viewer using Bootstrap 5.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/pharit/laravel-logs-viewer
Requires
- php: ^8.1
- illuminate/support: ^10.0|^11.0
README
Simple, zero-dependency package to view Laravel log files in your browser using Bootstrap 5.
Installation
- Require the package in your Laravel app:
composer require tong/laravel-logs-viewer
- Visit the route:
/logs-viewer
Optionally publish config and views:
php artisan vendor:publish --tag=logs-viewer-config php artisan vendor:publish --tag=logs-viewer-views
Configuration
// config/logs-viewer.php return [ 'route_prefix' => 'logs-viewer', 'middleware' => ['web'], ];
Features
- Browse available
.logfiles understorage/logs - View entries parsed and grouped by header line
- Download current log file
- Clear current log file
- Bootstrap 5 UI (CDN)
Security
Protect access using middleware in the config (e.g., auth, can:admin).
License
MIT