PHP Classes

File: routes/console.php

Recommend this page to a friend!
  Packages of Niko Peikrishvili   Ticker   routes/console.php   Download  
File: routes/console.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Ticker
Application to track and manage to do tasks
Author: By
Last change:
Date: 2 months ago
Size: 450 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Foundation\Inspiring;
use
Illuminate\Support\Facades\Artisan;
use
Illuminate\Support\Facades\Schedule;

Artisan::command('inspire', function () {
   
$this->comment(Inspiring::quote());
})->
purpose('Display an inspiring quote');

// Schedule recurring todos generation at noon every day
Schedule::command('todos:generate-recurring')->dailyAt('12:00');

// Schedule Jira sync every hour
Schedule::command('sync:jira')->hourly();