MalcolmKnott / display-log by MalcolmKnott

Read and display contents of laravel log file
30
0
1
Package Data
Maintainer Username: MalcolmKnott
Maintainer Contact: malcolm.knott@gmail.com (Malcolm Knott)
Package Create Date: 2017-07-01
Package Last Update: 2017-07-02
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:04:14
Package Statistics
Total Downloads: 30
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Display your Laravel log file in a bootsrap styled layout

This composer package reads and displays your Laravel log file.

Installation

Begin by pulling in the package through Composer.

composer require malcolmknott/displaylog

Next, if using Laravel 5, include the service provider within your config/app.php file.

'providers' => [
    Malcolmknott\Displaylog\DisplayLogServiceProvider::class,
];

Add this driver to your config/filesystems.php file.

'storage' => [
    'driver' => 'local',
    'root' => storage_path(),
]

If you have a new project scaffold the basic login and registration views to pull in Boostrap. Or publish the view file to use your own layout.

php artisan make:auth

View

Publish the view file to change the format and add your own style.

php artisan vendor:publish --provider="Malcolmknott\Displaylog\DisplayLogServiceProvider" --tag="views"

Usage

Add a route that points to the Display Log Controller, you'll probably want to add some middleware to restrict who can view your log.

Route::get('display-log', '\Malcolmknott\Displaylog\DisplayLogController@show');