roelgonzalez/laravel-dashboard-quote-of-the-day-tile 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

roelgonzalez/laravel-dashboard-quote-of-the-day-tile

最新稳定版本:2.0.0

Composer 安装命令:

composer require roelgonzalez/laravel-dashboard-quote-of-the-day-tile

包简介

A quote of the day tile for the Laravel Dashboard

README 文档

README

Latest Version on Packagist Total Downloads

This tile displays a quote of the day on your dashboard.

This tile can be used on the Laravel Dashboard.

Screenshot of Quote of the Day Tile

Compatibility

  • PHP 8.3 and newer
  • Laravel Dashboard v4
  • Laravel 11+ and Livewire 4+

Installation

You can install the package via composer:

composer require roelgonzalez/laravel-dashboard-quote-of-the-day-tile
// in config/dashboard.php

return [
    // ...
    'tiles' => [
        'quote_of_the_day' => [
            'max_character_length' => 70, // null for no limit
            'refresh_interval_in_seconds' => 3600,
        ],
    ],
];

In app\Console\Kernel.php you should schedule the RoelGonzalez\QuoteOfTheDayTile\FetchQuoteOfTheDayDataCommand to run every day (or however often you'd like the quote to change).

// in app/console/Kernel.php

protected function schedule(Schedule $schedule)
{
    // ...
    $schedule->command(\RoelGonzalez\QuoteOfTheDayTile\FetchQuoteOfTheDayDataCommand::class)->dailyAt('05:00');
}

Usage

In your dashboard view you use the livewire:quote-of-the-day-tile component.

<x-dashboard>
    <livewire:quote-of-the-day-tile position="a1" />
</x-dashboard>

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

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

统计信息

  • 总下载量: 157
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-10