quarterloop/laravel-dashboard-google-page-speed-tile
Composer 安装命令:
composer require quarterloop/laravel-dashboard-google-page-speed-tile
包简介
A google page speed tile for the Laravel Dashboard
README 文档
README
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-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(\Quarterloop\GooglePageSpeedTile\Commands\FetchGooglePageSpeedCommand::class)->twiceDaily();
Also add the following code snippet in app/console/kernel.php under "$commands" in a new line:
\Quarterloop\GooglePageSpeedTile\Commands\FetchGooglePageSpeedCommand::class,
Insert this in routes/web.php - this enables the manual-refresh-button in tile
Route::get('/refresh-page-speed', 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.
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-23