PHP code example of dipeshshihora / laravel-log-viewer

1. Go to this page and download the library: Download dipeshshihora/laravel-log-viewer library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

dipeshshihora / laravel-log-viewer example snippets


Dipesh\LaravelLogViewer\LaravelLogViewerServiceProvider::class,

use Dipesh\LaravelLogViewer\LogViewerController;

Route::get('logs', [LogViewerController::class, 'index'])->name('logs.index');

$app->register(Dipesh\LaravelLogViewer\LaravelLogViewerServiceProvider::class);

$router->get('logs', '\Dipesh\LaravelLogViewer\LogViewerController@index');
bash
php artisan vendor:publish --provider="Dipesh\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=views
bash
php artisan vendor:publish --provider="Dipesh\LaravelLogViewer\LaravelLogViewerServiceProvider" --tag=config