dedermus/scheduling 问题修复 & 功能扩展

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

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

dedermus/scheduling

最新稳定版本:2.0.2

Composer 安装命令:

composer require dedermus/scheduling

包简介

Task scheduling extension for Laravel open-admin-core

README 文档

README

StyleCI Packagist Total Downloads Pull request welcome

A web interface for manage task scheduling in laravel.

Documentation

Screenshot

extention-schedualing

Installation

$ composer require dedermus/scheduling

$ php artisan admin:import scheduling
        
      

enter to terminal: php artisan make:provider ScheduleCommandProvider

Open app/Providers/ScheduleCommandProvider.php.

Add method registerScheduledCommands()

/**
* Register scheduled commands from routes/console.php.
*
* @return void
  */
  protected function registerScheduledCommands()
  {
  app()->make('Illuminate\Contracts\Console\Kernel');
  $events = app()->make('Illuminate\Console\Scheduling\Schedule');

  // Load the routes/console.php file
  $consoleRoutes = base_path('/routes/console.php');

  if (File::exists($consoleRoutes)) {
  require $consoleRoutes;
  }
  }

add modify method boot()

$this->registerScheduledCommands();

Open file bootstrap/providers.php and add provider

    App\Providers\ScheduleCommandProvider::class,

Open http://your-host/admin/scheduling.

Try to add a scheduling task in routes/console.php like this:

Schedule::command('inspire')->everyTenMinutes()->runInBackground();
Schedule::command('route:list')->dailyAt('02:00');

Add use use Illuminate\Support\Facades\Schedule;

And you can find these tasks in scheduling panel.

Debugging

If console shows errors like: sh: : command not found Try adding this your .env file: PHP_BINARY=/path/to/your/php/binaray/

License

Licensed under The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-06-07