InspireCommand.php 735 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php namespace App\Console;
  2. use Illuminate\Console\Command;
  3. use Illuminate\Foundation\Inspiring;
  4. use Symfony\Component\Console\Input\InputOption;
  5. use Symfony\Component\Console\Input\InputArgument;
  6. class InspireCommand extends Command {
  7. /**
  8. * The console command name.
  9. *
  10. * @var string
  11. */
  12. protected $name = 'inspire';
  13. /**
  14. * The console command description.
  15. *
  16. * @var string
  17. */
  18. protected $description = 'Display an inpiring quote';
  19. /**
  20. * Create a new command instance.
  21. *
  22. * @return void
  23. */
  24. public function __construct()
  25. {
  26. parent::__construct();
  27. }
  28. /**
  29. * Execute the console command.
  30. *
  31. * @return mixed
  32. */
  33. public function fire()
  34. {
  35. $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
  36. }
  37. }