PHP code example of fixik / log-viewer

1. Go to this page and download the library: Download fixik/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/ */

    

fixik / log-viewer example snippets


use Fixik\LogViewer\Controllers\LogViewerController;

Route::prefix('logs')->group(function () {
    Route::get('/', [LogViewerController::class, 'index'])->name('logs.index');
    Route::get('/view/{filename}', [LogViewerController::class, 'show'])->name('logs.show');
});

'log_directory' => storage_path('custom-logs'),
bash
   php artisan vendor:publish --tag=log-viewer-config
   php artisan vendor:publish --tag=log-viewer-views
   
blade
<pre>{{ $xmlContent }}</pre>