devtropolis/nova-simple-status-card is a Laravel package for a laravel nova card..
It currently has 8 GitHub stars and 6.068 downloads on Packagist (latest version 0.2).
Install it with composer require devtropolis/nova-simple-status-card.
Discover more Laravel packages by devtropolis
or browse all Laravel packages to compare alternatives.
Last updated
A really simple status card for laravel nova. Configure an endpoint to return a status and a message and you are good to go

You can install the card via Composer using the following command
composer require devtropolis/nova-simple-status-card
The card needs a url to be passed to it, included in the card package is a test url, you can specify any url you would like
you then need to register the card in the cards array
public function cards()
{
return [
new NovaSimpleStatusCard->options(['/nova-vendor/statuscard/statusTestEndpoint']),
];
}
You can customise the following:
to set the options just pass them as a array elements to the options method of the card
(new NovaSimpleStatusCard())->options(['title' => 'My Custom Title',
'url' => '/nova-vendor/statuscard/statusTestEndpoint',
'icon' => 'https://avatars3.githubusercontent.com/u/2988541?s=200&v=4'
'fetchInterval' => 5000
]),
In order for the card to display anything you need to configure your endpoint to response with the following object
return response([
'status'=> 'YOUR_RESPONSE_STATUS one of pass,fail,other',
'message'=> 'Any message you want displaying in the footer'
]);