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 quaterloop/laravel-dashboard-google-page-speed-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(\Quaterloop\GooglePageSpeedTile\Commands\FetchGooglePageSpeedCommand::class)->everyMinute();

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

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

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.