| @@ 17-43 (lines=27) @@ | ||
| 14 | use Illuminate\Console\Command; |
|
| 15 | use Unicodeveloper\Quotes\Quotes; |
|
| 16 | ||
| 17 | class Design extends Command |
|
| 18 | { |
|
| 19 | /** |
|
| 20 | * The name and signature of the console command. |
|
| 21 | * |
|
| 22 | * @var string |
|
| 23 | */ |
|
| 24 | protected $signature = 'design:inspire'; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * The console command description. |
|
| 28 | * |
|
| 29 | * @var string |
|
| 30 | */ |
|
| 31 | protected $description = 'Display a design quote'; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * Execute the console command. |
|
| 35 | * |
|
| 36 | * @return mixed |
|
| 37 | */ |
|
| 38 | public function handle() |
|
| 39 | { |
|
| 40 | $quotes = new Quotes(); |
|
| 41 | $this->comment(PHP_EOL.$quotes->design()->random().PHP_EOL); |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||
| @@ 17-43 (lines=27) @@ | ||
| 14 | use Illuminate\Console\Command; |
|
| 15 | use Unicodeveloper\Quotes\Quotes; |
|
| 16 | ||
| 17 | class Programming extends Command |
|
| 18 | { |
|
| 19 | /** |
|
| 20 | * The name and signature of the console command. |
|
| 21 | * |
|
| 22 | * @var string |
|
| 23 | */ |
|
| 24 | protected $signature = 'programming:inspire'; |
|
| 25 | ||
| 26 | /** |
|
| 27 | * The console command description. |
|
| 28 | * |
|
| 29 | * @var string |
|
| 30 | */ |
|
| 31 | protected $description = 'Display a programming, hacking and coding quote'; |
|
| 32 | ||
| 33 | /** |
|
| 34 | * Execute the console command. |
|
| 35 | * |
|
| 36 | * @return mixed |
|
| 37 | */ |
|
| 38 | public function handle() |
|
| 39 | { |
|
| 40 | $quotes = new Quotes(); |
|
| 41 | $this->comment(PHP_EOL.$quotes->programming()->random().PHP_EOL); |
|
| 42 | } |
|
| 43 | } |
|
| 44 | ||