ldc-doux/routes/console.php

20 lines
630 B
PHP
Raw Permalink Normal View History

2021-11-18 14:36:06 +01:00
<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
/*
2022-08-11 12:34:27 +02:00
|--------------------------------------------------------------------------
| 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.
|
2021-11-18 14:36:06 +01:00
*/
2026-10-27 09:12:51 +01:00
Artisan::command('inspire', function (): void {
2021-11-18 14:36:06 +01:00
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');