kabbouchi/nova-logs-tool 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

kabbouchi/nova-logs-tool

最新稳定版本:v2.2.0

Composer 安装命令:

composer require kabbouchi/nova-logs-tool

包简介

A Laravel Nova tool to manage and keep track of each one of your logs files.

README 文档

README

Latest Version on Packagist Total Downloads

A Laravel Nova tool to manage and keep track of each one of your logs files.

screenshot of the backup tool

Behind the scenes kabbouchi/laravel-ward is used.

You can disable laravel-ward routes by adding LOG_VIEWER_ENABLE_ROUTES=false to .env file

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require kabbouchi/nova-logs-tool php artisan vendor:publish --tag=ward-assets --force

Next up, you must register the tool with Nova. This is typically done in the tools method of the NovaServiceProvider.

// in app/Providers/NovaServiceProvder.php // ... public function tools() { return [ // ... new \KABBOUCHI\LogsTool\LogsTool(), ]; }

Publish the package configuration file.

php artisan vendor:publish --provider="KABBOUCHI\LogsTool\LogsToolServiceProvider"

Authorization

// in app/Providers/NovaServiceProvder.php // ... public function tools() { return [ // ... // don't return plain `true` value or anyone can see/download/delete the logs, make sure to check if user has permission. (new \KABBOUCHI\LogsTool\LogsTool()) ->canSee(function ($request) { return auth()->user()->canSee(); }) ->canDownload(function ($request) { return auth()->user()->canDownload(); }) ->canDelete(function ($request) { return false; }), ]; }

Usage

Click on the "nova-logs-tool" menu item in your Nova app to see the tool provided by this package.

Possible environment variables:

NOVA_LOGS_PER_PAGE=6 NOVA_LOGS_REGEX_FOR_FILES="/^laravel/"

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 357.86k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 74
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 73
  • Watchers: 4
  • Forks: 18
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固