text4u
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

12345678910111213141516171819
  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');