Files
nl-mall-api/app/console/InspireCommand.php

45 lines
712 B
PHP
Raw Normal View History

2014-07-31 15:13:50 -05:00
<?php
use Illuminate\Console\Command;
2014-08-01 00:46:47 -05:00
use Illuminate\Foundation\Inspiring;
2014-07-31 15:13:50 -05:00
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
*/
2014-08-11 10:13:20 -05:00
protected $description = 'Display an inpiring quote';
2014-07-31 15:13:50 -05:00
/**
* Create a new command instance.
*
* @return void
*/
public function __construct()
{
parent::__construct();
}
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
2014-08-11 10:13:20 -05:00
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
2014-07-31 15:13:50 -05:00
}
}