Skip to content

Instantly share code, notes, and snippets.

@woganmay
Last active April 5, 2016 21:53
Show Gist options
  • Save woganmay/3ddcaff8d973127e36c3ac472de54cbf to your computer and use it in GitHub Desktop.
Save woganmay/3ddcaff8d973127e36c3ac472de54cbf to your computer and use it in GitHub Desktop.
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Foundation\Inspiring;
class Inspire extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'inspire';
/**
* The console command description.
*
* @var string
*/
protected $description = 'Display an inspiring quote';
/**
* Execute the console command.
*
* @return mixed
*/
public function handle()
{
$this->comment(PHP_EOL.Inspiring::quote().PHP_EOL);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment