Inspire.php 576 B

1234567891011121314151617181920212223242526272829303132
  1. <?php namespace App\Console\Commands;
  2. use Illuminate\Console\Command;
  3. use Illuminate\Foundation\Inspiring;
  4. class Inspire extends Command
  5. {
  6. /**
  7. * The console command name.
  8. *
  9. * @var string
  10. */
  11. protected $name = 'inspire';
  12. /**
  13. * The console command description.
  14. *
  15. * @var string
  16. */
  17. protected $description = 'Display an inspiring quote';
  18. /**
  19. * Execute the console command.
  20. *
  21. * @return mixed
  22. */
  23. public function handle()
  24. {
  25. $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
  26. }
  27. }