Looking to hire Laravel developers? Try LaraJobs
This package is not available.

laravel-logs-viewer maintained by pharit

Description
A simple Laravel logs viewer using Bootstrap 5.
Last update
2025/08/11 11:18 (dev-main)
License
Links
Downloads
0

Comments
comments powered by Disqus

Laravel Logs Viewer (Bootstrap 5)

Simple, zero-dependency package to view Laravel log files in your browser using Bootstrap 5.

Installation

  1. Require the package in your Laravel app:
composer require tong/laravel-logs-viewer
  1. 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 .log files under storage/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