protected function loadConsole()
    {
        if (! $this->app->runningInConsole()) {
            return;
        }

        $this->publishes([__DIR__.'/../config/eyewitness.php' => config_path('eyewitness.php')]);

        if ($this->eye->laravelVersionIs('>=', '5.4.0')) {
            $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
        } else {
            $this->publishes([__DIR__.'/../database/migrations/' => database_path('migrations')], 'eyewitness');
        }

        $this->commands([BackgroundRunCommand::class,
                         WitnessMakeCommand::class,
                         RegenerateCommand::class,
                         ComposerCommand::class,
                         InstallCommand::class,
                         CustomCommand::class,
                         DebugCommand::class,
                         PruneCommand::class,
                         PollCommand::class,
                         SslCommand::class,
                         DnsCommand::class]);

        $this->loadEyewitnessSchedules();
        $this->loadSchedulerMonitor();
        $this->loadQueueMonitor();
    }