laravel command verbose code example
Example: verbose in Laravel artisan commands
if ($this->getOutput()->isQuiet()) {
// echo stuff
}
/*
Veriations:
isQuiet() - no verbosity is set (no option set)
isVerbose() - if the level is quiet or verbose (-v)
isVeryVerbose() - if the level is very verbose, verbose or quiet (-vv)
isDebug() - if the level is debug, very verbose, verbose or quiet (-vvv)
Documentaion (Laravel 8):
https://laravel.com/api/8.x/Illuminate/Console/OutputStyle.html
*/