So! This repository is a sample one. You can use it as a reference to this article right here.
Files to care about
app/Livewire/RequestsReceived.php
- Livewire component extending Pulse's Card component, and retrievesmachine_requests
metric from the Pulse tablesresources/views/livewire/requests-received.blade.php
- Copy paste of Laravel Pulse's sample custom card. Tweaked to display$machines
count information into a tableapp/Http/Middleware/RecordRequest.php
- Global middleware that records incoming requests into Pulse's tables using Pulse's available methods.