Ad

Laravel Artisan Command Show Verbose Error Messages

- 1 answer

Typically I run a laravel artisan command like

php artisan Command -v

and if there is an error I can find the file/line#, using the -v flag.

For some reason the -v is not working on one of my commands. I am therefore receiving a pretty limited error message:

[Symfony\Component\Debug\Exception\FatalErrorException] Call to a member function getArgument() on null

This command happens to be calling some code that is extending someone else's code.

Any ideas how to get the file/line output in the error message?

Ad

Answer

Old, but relates to a questions / answer I had...

...verbosity levels...

// -v|vv|vvv Increase the verbosity of messages: 
//    1 for normal output, 2 for more verbose output and 3 for debug
php artisan --verbose

Good reference here... https://github.com/JesseObrien/laravel-cheatsheet (moved to github)

Ad
source: stackoverflow.com
Ad