PHP code example of yurizoom / moonshine-log-viewer

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

    

yurizoom / moonshine-log-viewer example snippets


[
    'log_viewer' => [
        // Автоматическое добавление в меню
        'auto_menu' => true,
        // Путь до директории с логами
        'path' => storage_path('logs'),
    ]
]

use YuriZoom\MoonShineLogViewer\Pages\LogViewerPage;

protected function menu(): array
    {
        return [
            ...
            
            MenuItem::make(
                __('Log viewer'),
                LogViewerPage::class,
            ),
        ];
    }