1.在终端执行下面的命令:
composer require rap2hpoutre/laravel-log-viewer
2.在‘config/app.php’添加上:
Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class,
3.在大后台路由 下面写上路由:
Route::get('logs', '\Rap2hpoutre\LaravelLogViewer\LogViewerController@index');
网友评论