| 1 | <?php | = | 1 | <?php |
| 2 | 2 | |||
| 3 | use Illuminate\Foundation\Inspiring; | 3 | use Illuminate\Foundation\Inspiring; | |
| -+ | 4 | use Illuminate\Support\Facades\Artisan; | ||
| 4 | = | 5 | ||
| 5 | /* | 6 | /* | |
| 6 | |-------------------------------------------------------------------------- | 7 | |-------------------------------------------------------------------------- | |
| 7 | | Console Routes | 8 | | Console Routes | |
| 8 | |-------------------------------------------------------------------------- | 9 | |-------------------------------------------------------------------------- | |
| 9 | | | 10 | | | |
| 10 | | This file is where you may define all of your Closure based console | 11 | | This file is where you may define all of your Closure based console | |
| 11 | | commands. Each Closure is bound to a command instance allowing a | 12 | | commands. Each Closure is bound to a command instance allowing a | |
| 12 | | simple approach to interacting with each command's IO methods. | 13 | | simple approach to interacting with each command's IO methods. | |
| 13 | | | 14 | | | |
| 14 | */ | 15 | */ | |
| 15 | 16 | |||
| 16 | Artisan::command('inspire', function () { | 17 | Artisan::command('inspire', function () { | |
| 17 | $this->comment(Inspiring::quote()); | 18 | $this->comment(Inspiring::quote()); | |
| 18 | })->describe('Display an inspiring quote'); | 19 | })->describe('Display an inspiring quote'); |