[擴充套件包]-Laravel檢視日誌

Lance發表於2020-08-19

1,composer require arcanedev/log-viewer
2,log設定為daily
3,laravel < 5.5 加入服務提供者:Arcanedev\LogViewer\LogViewerServiceProvider::class
4,釋出配置檔案 php artisan log-viewer:publish(可選)
相關配置說明
github.com/ARCANEDEV/LogViewer/blo...

Route

<?php

return [
    'route'         => [
        'enabled'    => true,
        'attributes' => [
            'prefix'     => 'log-viewer',
            'middleware' => env('ARCANEDEV_LOGVIEWER_MIDDLEWARE') ? explode(',', env('ARCANEDEV_LOGVIEWER_MIDDLEWARE')) : null,
        ],
    ],
];

開啟 xxx.com/log-viewer

【擴充套件包】laravel檢視日誌

【擴充套件包】laravel檢視日誌

【擴充套件包】laravel檢視日誌

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章