You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and dots ('.'), can be up to 35 characters long. Letters must be lowercase.
34 lines
839 B
34 lines
839 B
<?php |
|
namespace App\Console; |
|
use Illuminate\Console\Scheduling\Schedule; |
|
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; |
|
use Illuminate\Support\Facades\File; |
|
use Illuminate\Support\Facades\Log; |
|
use Illuminate\Support\Facades\Storage; |
|
|
|
class Kernel extends ConsoleKernel |
|
{ |
|
/** |
|
* Define the application's command schedule. |
|
* |
|
* @param \Illuminate\Console\Scheduling\Schedule $schedule |
|
* @return void |
|
*/ |
|
protected function schedule(Schedule $schedule) |
|
{ |
|
|
|
$schedule->call(function() { |
|
Log::info("Hello"); |
|
})->everyThreeMinutes(); |
|
} |
|
/** |
|
* Register the commands for the application. |
|
* |
|
* @return void |
|
*/ |
|
protected function commands() |
|
{ |
|
$this->load(__DIR__.'/Commands'); |
|
require base_path('routes/console.php'); |
|
} |
|
} |