berthott/laravel-schedulable 问题修复 & 功能扩展

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

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

berthott/laravel-schedulable

最新稳定版本:3.0.0

Composer 安装命令:

composer require berthott/laravel-schedulable

包简介

Laravel Helper for scheduling model related tasks

README 文档

README

test workflow

Laravel-Schedulable

Laravel Helper for scheduling model related tasks.

Installation

$ composer require berthott/laravel-schedulable

Usage

  • Use the Schedulable trait in your model
  • Add any number of schedulabe* methods in your model (eg. schedulableTest)
  • Run the laravel scheduler according to the documentation
  • Your schedulabe* methods will be called every time the laravel scheduler runs.
    • Inside of your method you can do your own checks whether to run the logic or not.

Options

To change the default options use

$ php artisan vendor:publish --provider="berthott\Schedulable\SchedulableServiceProvider" --tag="config"
  • namespace: String or array with one ore multiple namespaces that should be monitored for the configured trait. Defaults to App\Models.
  • cron: Cron frequency for the scheduler to be called. Defaults to every minute: * * * * *

Compatibility

Tested with Laravel 10.x.

License

See License File. Copyright © 2023 Jan Bladt.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固