husam-tariq/filament-database-schedule 问题修复 & 功能扩展

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

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

husam-tariq/filament-database-schedule

最新稳定版本:v4.0.1

Composer 安装命令:

composer require husam-tariq/filament-database-schedule

包简介

Manage your Laravel Task Scheduling in a Filament interface and save schedules to the database.

README 文档

README

Latest Version on Packagist Total Downloads

Filament Database Schedule

Documentation

This librarian creates a filament resource(default: /schedule) in your filament admin panel where it is possible to manage which schedules will be executed at any given moment, these schedules are recorded in the database and can be changed, activated, inactivated or deleted via your panel without the need for a new application deployment.

Create Schedules

Create Schedules

Show History Schedules

Show History Schedules

Installation

You can install the package via composer:

composer require husam-tariq/filament-database-schedule

You should publish and run the migrations with:

php artisan vendor:publish --tag="filament-database-schedule-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-database-schedule-config"

You can publish the translations files with:

php artisan vendor:publish --tag="filament-database-schedule-translations"

Run the artisan command to run scheduled tasks

php artisan schedule:run

Plugin Usage

Using the plugin is easy all you need to do is instanciate it to the Panels you want the plugin to be available in.

use HusamTariq\FilamentDatabaseSchedule\FilamentDatabaseSchedulePlugin;



public function panel(Panel $panel): Panel
{
    return $panel
        ...
        ->plugins([
           FilamentDatabaseSchedulePlugin::make()
        ])
        ...
}

Environment variables

You can set the following environment variables to configure schedules:

  • SCHEDULE_TIMEZONE : The default is the same configured for the application, but if you need the schedules to run in a different timezone, it is possible to configure it with this variable
  • SCHEDULE_CACHE_DRIVER : The default is file
  • SCHEDULE_CACHE_ENABLE : The default is disabled when APP_DEBUG=true and enabled when APP_DEBUG=false

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

  • 总下载量: 18.45k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 102
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 102
  • Watchers: 3
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-12