1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <?php namespace App\Console;
- use Illuminate\Console\Command;
- use Illuminate\Foundation\Inspiring;
- use Symfony\Component\Console\Input\InputOption;
- use Symfony\Component\Console\Input\InputArgument;
- class InspireCommand extends Command {
- /**
- * The console command name.
- *
- * @var string
- */
- protected $name = 'inspire';
- /**
- * The console command description.
- *
- * @var string
- */
- protected $description = 'Display an inspiring quote';
- /**
- * Create a new command instance.
- *
- * @return void
- */
- public function __construct()
- {
- parent::__construct();
- }
- /**
- * Execute the console command.
- *
- * @return mixed
- */
- public function fire()
- {
- $this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
- }
- }
|