暫無描述

console.php 592B

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