Looking to hire Laravel developers? Try LaraJobs

laravel-dashboard-dns-tile maintained by quarterloop

Description
A DNS info tile for the Laravel Dashboard
Author
Last update
2022/06/05 23:06 (dev-main)
License
Downloads
17

Comments
comments powered by Disqus

A short description of the tile

A friendly explanation of what your tile does.

This tile can be used on the Laravel Dashboard.

Installation

You can install the package via composer:

composer require quarterloop/laravel-dashboard-dns-tile

Usage

In your dashboard view you use the livewire:google-page-speed-tile component.

<x-dashboard>
    <livewire:google-page-speed-tile position="e7:e16" />
</x-dashboard>

Use the php artisan command to fetch Page Speed data.

php artisan dashboard:fetch-google-page-speed-data

Use this snippet to schedule the command in app/Console/Commands/Kernel.php

$schedule->command(\Quarterloop\DNSTile\Commands\FetchDNSCommand::class)->daily();

Also add the following code snippet in app/console/kernel.php under "$commands" in a new line:

\Quarterloop\DNSTile\Commands\FetchDNSCommand::class,

Insert this in routes/web.php - this enables the manual-refresh-button in tile

Route::get('/refresh-dns', function() {
  Artisan::call('dashboard:fetch-dns-data');
  return back();
})->name('fetch-dns');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email wallisch@skouz.de instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.