morrislaptop/laravel-pulse-4xx 问题修复 & 功能扩展

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

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

morrislaptop/laravel-pulse-4xx

最新稳定版本:v0.3.0

Composer 安装命令:

composer require morrislaptop/laravel-pulse-4xx

包简介

Laravel Pulse Card for 4XX responses like validation, auth and not found

README 文档

README

4XX requests for Laravel Pulse

Laravel Pulse Card for 4XX responses like validation, auth and not found

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Laravel Pulse Card for 4XX responses like validation, auth and not found.

Installation

You can install the package via composer:

composer require morrislaptop/laravel-pulse-4xx

Register the recorder

Add the FourXxRecorder to the config/pulse.php file.

return [
    // ...

    'recorders' => [
        Morrislaptop\LaravelPulse4xx\FourXxRecorder::class => [
            'enabled' => env('PULSE_4XX_ENABLED', true),
            'sample_rate' => env('PULSE_4XX_SAMPLE_RATE', 1),
            'ignore' => [
                '#^/wp-admin#', // Classic WordPress...
                '#^/wp-login#',
                '#^/wp-config#',
                '#^/xmlrpc\.php#',
                '#^/browserconfig\.xml#', // Microsoft junk
            ],
        ],

        // ...
    ]
]

Add to your dashboard

To add the card to the Pulse dashboard, you must first publish the vendor view.

php artisan vendor:publish --tag=pulse-dashboard

Then, add the card to your resources/views/vendor/pulse/dashboard.php:

<x-pulse>
    <livewire:4xx cols="4" rows="2" />

    <!-- ... -->
</x-pulse>

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

  • Stars: 25
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-07