config:clear you haven't figured out that configuration is cached.
So what do you think config:clear
does.
Okay you make a configuration change for example you now have a new password for your database
Now to ensure that you are using current configuration, okay do you see now.
Just curious, did you try:
php artisan help config:clear
which gives:
Description:
Remove the configuration cache file
Usage:
config:clear
Options:
-h, --help Display this help message
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi Force ANSI output
--no-ansi Disable ANSI output
-n, --no-interaction Do not ask any interactive question
--env[=ENV] The environment the command should run under
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug