Skip to content

dedermus/scheduling

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scheduling task manager for open-admin-core

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).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 96.7%
  • Blade 3.3%