承接 newms87/danx 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

newms87/danx

最新稳定版本:1.2.82

Composer 安装命令:

composer require newms87/danx

包简介

Danx Auditing, Logging, and Helpers

README 文档

README

Installation

composer require danx/laravel

Setup

Publish the configuration file

sail artisan vendor:publish --provider="Newms87\Danx\DanxServiceProvider"

Development

Install Danx UI

Setup Danx UI

Configure CORS

sail artisan config:publish cors
  • Configure the paths so the desired routes are allowed
    • NOTE: By default it is open to all requests

Symlink the Danx library

Symlinking the library will allow for realtime development of the danx library package. This is only useful for development. The command will symlink the vendor/newms87/danx package to the danx git repo that should be located in the same directory as the project.

ie:

- parent
  - danx
  - your-project
    - vendor
      - newms87
        - danx --> ../../../danx

If using docker, the danx library should be mounted to the docker container.

services:
  laravel.test:
    volumes:
      - '../danx:/var/www/danx'

Run the command

sail artisan danx:link

Publish package to composer

To publish packages, simply push a new tagged version to the repository.

make VERSION=1.0.0 publish

Setup

Audit Logging

  • Update config/logging.php
'channels' => [
    
    //...
    
    'auditlog' => [
            'driver' => 'custom',
            'via'    => Newms87\Danx\Logging\Audit\AuditLogLogger::class,
            'level'  => env('LOG_LEVEL', 'debug'),
        ],
],
  • Update .env
    • recommended to use stack as the main channel, so you can add additional logging channels
LOG_CHANNEL=stack
LOG_STACK={single},{other-log-channels},auditlog

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-22