Files
tickme/app/Console/Kernel.php
T
2020-05-11 14:43:49 +08:00

47 lines
1.1 KiB
PHP

<?php
namespace App\Console;
use App\Classes\CodeGenerator\Commands\RollbackGeneratorCommand;
use App\Classes\CodeGenerator\Commands\Scaffold\MicroGeneratorCommand;
use App\Classes\CodeGenerator\Commands\Scaffold\ScaffoldGeneratorCommand;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
* The Artisan commands provided by your application.
*
* @var array
*/
protected $commands = [
MicroGeneratorCommand::class,
ScaffoldGeneratorCommand::class,
RollbackGeneratorCommand::class
];
/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
}
/**
* Register the commands for the application.
*
* @return void
*/
protected function commands()
{
$this->load(__DIR__.'/Commands');
require base_path('routes/console.php');
}
}