Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 1.01 KB

README.md

File metadata and controls

10 lines (6 loc) · 1.01 KB

Custom Pulse Metric Recording and Display

So! This repository is a sample one. You can use it as a reference to this article right here.

Files to care about

  1. app/Livewire/RequestsReceived.php - Livewire component extending Pulse's Card component, and retrieves machine_requests metric from the Pulse tables
  2. resources/views/livewire/requests-received.blade.php - Copy paste of Laravel Pulse's sample custom card. Tweaked to display $machines count information into a table
  3. app/Http/Middleware/RecordRequest.php - Global middleware that records incoming requests into Pulse's tables using Pulse's available methods.