2019-05-29 12:04:46 +00:00
|
|
|
<?php
|
|
|
|
namespace App\Console\Commands;
|
2015-07-19 06:49:24 +00:00
|
|
|
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Foundation\Inspiring;
|
|
|
|
|
2019-05-29 12:04:46 +00:00
|
|
|
class Inspire extends Command
|
|
|
|
{
|
2015-07-19 06:49:24 +00:00
|
|
|
|
2019-05-29 12:04:46 +00:00
|
|
|
/**
|
|
|
|
* The console command name.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $name = 'inspire';
|
2015-07-19 06:49:24 +00:00
|
|
|
|
2019-05-29 12:04:46 +00:00
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = 'Display an inspiring quote';
|
2015-07-19 06:49:24 +00:00
|
|
|
|
2019-05-29 12:04:46 +00:00
|
|
|
/**
|
|
|
|
* Execute the console command.
|
|
|
|
*
|
|
|
|
* @return mixed
|
|
|
|
*/
|
|
|
|
public function handle()
|
|
|
|
{
|
|
|
|
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
|
2021-05-25 12:15:02 +00:00
|
|
|
return 0;
|
2019-05-29 12:04:46 +00:00
|
|
|
}
|
2015-07-19 06:49:24 +00:00
|
|
|
}
|