From c7a1c7d773325c3d45fd41e3e009e3c811190d19 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 16 Aug 2016 19:44:28 -0500 Subject: [PATCH] =?UTF-8?q?Ship=20a=20console=20routes=20file=20by=20defau?= =?UTF-8?q?lt.=20=F0=9F=8C=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Inspire.php | 33 -------------------------------- app/Console/Kernel.php | 6 ++---- routes/console.php | 18 +++++++++++++++++ 3 files changed, 20 insertions(+), 37 deletions(-) delete mode 100644 app/Console/Commands/Inspire.php create mode 100644 routes/console.php diff --git a/app/Console/Commands/Inspire.php b/app/Console/Commands/Inspire.php deleted file mode 100644 index db9ab854..00000000 --- a/app/Console/Commands/Inspire.php +++ /dev/null @@ -1,33 +0,0 @@ -comment(PHP_EOL.Inspiring::quote().PHP_EOL); - } -} diff --git a/app/Console/Kernel.php b/app/Console/Kernel.php index aaf760e0..622e774b 100644 --- a/app/Console/Kernel.php +++ b/app/Console/Kernel.php @@ -13,7 +13,7 @@ class Kernel extends ConsoleKernel * @var array */ protected $commands = [ - // Commands\Inspire::class, + // ]; /** @@ -35,8 +35,6 @@ class Kernel extends ConsoleKernel */ protected function commands() { - // $this->command('build {project}', function ($project) { - // $this->info('Building project...'); - // }); + require base_path('routes/console.php'); } } diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 00000000..eea1a865 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,18 @@ +comment(Inspiring::quote()); +});