Ship a console routes file by default. 🌊

This commit is contained in:
Taylor Otwell
2016-08-16 19:44:28 -05:00
parent 57b57bf1b3
commit c7a1c7d773
3 changed files with 20 additions and 37 deletions

18
routes/console.php Normal file
View File

@@ -0,0 +1,18 @@
<?php
use Illuminate\Foundation\Inspiring;
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
});