Created
November 2, 2022 18:28
-
-
Save Vigowebs/d22df6636b95aa1d5c8a42daf27e8463 to your computer and use it in GitHub Desktop.
Adding Auto-complete Hints to Artisan Commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TestCommand extends Command | |
{ | |
public function handle() | |
{ | |
$email = $this->anticipate('Find customer by email: ', [ | |
'Gopi@vigowebs.com', | |
'Vigo@example.com', | |
]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment