alibayat/laravel-logviewer

Showing Laravel log files in a web page using dataTables

1.0 2021-05-29 06:45 UTC

This package is auto-updated.

Last update: 2024-04-18 18:10:09 UTC


README

This Package can be used to show laravel log files inside of a web page using Bootstrap and DataTables. it can be used with Laravel/Lumen 4.2+ all the way through to the lastest versions. this package is a fork from the famous Log-Viewer package with minor changes.

Requirements

  • PHP 5.4+
  • Laravel 4.2+

Installation

Composer Install:

composer require alibayat/laravel-logviewer

Publish configuration:

php artisan vendor:publish \
  --provider="AliBayat\LaravelLogViewer\LaravelLogViewerServiceProvider"

Publish view file:

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

Usage

you can use any route you want to point to the index method of the controller included in the package:

Route::get('logs', '\AliBayat\LaravelLogViewer\LogViewerController@index');

Credits