We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e4a5889 commit 3e72cdaCopy full SHA for 3e72cda
tests/fixture/app/Console/Commands/GenericCommand.php
@@ -4,11 +4,12 @@
4
5
class GenericCommand extends Command
6
{
7
- protected $signature = 'generic';
+ protected $signature = 'generic {--name= : Name for greeting message}';
8
9
- public function getSomethingImportant()
+ public function getGreetingMessage()
10
11
- return 'Important!';
+ $name = $this->option('name') ?: 'Dude';
12
+ return "Hello, {$name}!";
13
}
14
15
public function handle()
0 commit comments