Pulse Validation Errors

timacdonald/pulse-validation-errors image

Pulse Validation Errors stats

Downloads
293
Stars
36
Open Issues
3
Forks
4

View on GitHub →

Validation errors card for Laravel Pulse

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 photo

🐘 Core Team Member @laravel; 📦 Building packages for fun; 📣 Speaking, Blogging, Viming; ✌️ He/Him

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Timacdonald Pulse Validation Errors Related Articles

Validation Errors Card for Laravel Pulse image

Validation Errors Card for Laravel Pulse

Read article
Blastup logo

Blastup

Blastup provides social media enhancement services including buying Instagram likes, followers, and views, with features like instant delivery and a variety of packages to suit different needs.

Blastup
Honeybadger logo

Honeybadger

Simple developer-focused application monitoring for Laravel. Error tracking, log management, uptime monitoring, status pages, and more!

Honeybadger
SaaSykit: Laravel SaaS Starter Kit logo

SaaSykit: Laravel SaaS Starter Kit

SaaSykit is a Multi-tenant Laravel SaaS Starter Kit that comes with all features required to run a modern SaaS. Payments, Beautiful Checkout, Admin Panel, User dashboard, Auth, Ready Components, Stats, Blog, Docs and more.

SaaSykit: Laravel SaaS Starter Kit
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten
Securing Laravel logo

Securing Laravel

The essential security resource for Laravel devs, covering everything you need to keep your apps secure. Sign up to receive weekly security tips and monthly in depth articles, diving deep into security concepts you need to know!

Securing Laravel
Harpoon: Next generation time tracking and invoicing logo

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