quarterloop/laravel-dashboard-ttfb-tile

Laravel Dashboard 的首次字节传输时间

v1.0.6 2022-08-10 20:15 UTC

This package is auto-updated.

Last update: 2024-09-11 00:35:59 UTC


README

关于您的瓷砖如何工作的友好解释。

此瓷砖可用于 Laravel Dashboard

安装

您可以通过 composer 安装此包

composer require quarterloop/laravel-dashboard-dns-tile

用法

在您的仪表板视图中,您使用 livewire:google-page-speed-tile 组件。

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

使用 php artisan 命令来获取页面速度数据。

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

使用此片段在 app/Console/Commands/Kernel.php 中安排命令

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

另外,在 app/console/kernel.php 中在 "$commands" 下的新行添加以下代码片段

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

在 routes/web.php 中插入此代码 - 这启用了瓷砖中的手动刷新按钮

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

测试

composer test

变更日志

请参阅 CHANGELOG 了解最近更改的详细信息。

贡献

请参阅 CONTRIBUTING 了解详细信息。

安全

如果您发现任何与安全相关的问题,请通过电子邮件 wallisch@skouz.de 而不是使用问题跟踪器。

致谢

许可证

MIT 许可证 (MIT)。请参阅 许可证文件 了解更多信息。