I would like to ask user for DB credential (on the CLI) before the application connect to the database.
Example:
> php artisan db:administrate
> Please enter DB username:
> dbUser
> Please enter the DB password:
> ******
And then if the credential are OK, the handle() method of the AdministrateCommand would be fired.
Is it possible to do that with Laravel ?
Any clue ou idea would be much appreciate :)
Thank in advance.
Have a nice day.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire