2021-07-30 18:38:43 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Inspiring;
|
|
|
|
use Illuminate\Support\Facades\Artisan;
|
|
|
|
|
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| Console Routes
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
|
2023-05-07 17:02:00 +02:00
|
|
|
| This file is where you may define all of your Closure-based console
|
2021-07-30 18:38:43 +02:00
|
|
|
| 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 () {
|
2023-05-07 17:02:00 +02:00
|
|
|
/**
|
|
|
|
* @psalm-suppress InvalidScope
|
|
|
|
*/
|
2021-07-30 18:38:43 +02:00
|
|
|
$this->comment(Inspiring::quote());
|
|
|
|
})->purpose('Display an inspiring quote');
|