Package

Timacdonald Pulse Validation Errors

Validation errors card for Laravel Pulse

Package

timacdonald/pulse-validation-errors

View on GitHub →

Validation errors card for Laravel Pulse

A card for Laravel Pulse to show validation errors impacting users.

Validation errors card for Laravel Pulse

Installation

First, install the package via composer:

composer require timacdonald/pulse-validation-errors

Next, add the recorder to your config/pulse.php:

return [
    // ...

    'recorders' => [
        TiMacDonald\Pulse\Recorders\ValidationErrors::class => [
            'enabled' => env('PULSE_VALIDATION_ERRORS_ENABLED', true),
            'sample_rate' => env('PULSE_VALIDATION_ERRORS_SAMPLE_RATE', 1),
            'capture_messages' => true,
            'ignore' => [
                // '#^/login$#',
                // '#^/register$#',
                // '#^/forgot-password$#',
            ],
        ],

        // ...
    ],
];

[!Warning] Make sure to configure the sample_rate for your application. This card may capture a lot of data if you have a lot of users hitting validation errors.

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

<x-pulse>
    <livewire:pulse.validation-errors cols="8" rows="4" />

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

Finally, get to improving your user experience. At LaraconUS I gave a talk on how much our validation sucks. If you are here, you likely also care about how your users experience validation errors on your app, so I'd love you to give it a watch.

Features

  • Supports multiple error bags
  • Supports session based validation errors
  • Supports API validation errors
  • Support Inertia validation errors
  • Fallback for undetectable validation errors (based on 422 response status)

Timacdonald Pulse Validation Errors Related Articles

Validation Errors Card for Laravel Pulse image

Validation Errors Card for Laravel Pulse

Read article
Announcing Laravel Pulse - A New Performance Monitoring Tool for Laravel Apps image

Announcing Laravel Pulse - A New Performance Monitoring Tool for Laravel Apps

Read article
Laravel Pulse is a health and performance monitoring tool for your Laravel applications image

Laravel Pulse is a health and performance monitoring tool for your Laravel applications

Read article
Laravel Validation: A Practical Guide with Examples image

Laravel Validation: A Practical Guide with Examples

Read article
Active Sessions Card for Laravel Pulse image

Active Sessions Card for Laravel Pulse

Read article
Show Outdated Composer Dependencies in Laravel Pulse image

Show Outdated Composer Dependencies in Laravel Pulse

Read article

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum