daninthemix
daninthemix

Reputation: 2570

How can I get better output from Artisan commands?

[Symfony\Component\Debug\Exception\FatalThrowableError] Parse error: syntax error, unexpected 'protected' (T_PROTECTED)

That's all I get. Any chance of a class name? The line causing the error? Anything at all that would help me narrow this down?

Upvotes: 2

Views: 114

Answers (1)

Alexey Mezenin
Alexey Mezenin

Reputation: 163798

You can check last record in /storage/logs/laravel.log file.

Also, you could use route for the command to display full exception message:

Route::get('test-my-command', function() {
    Artisan::call('my:command');
});

Upvotes: 2

Related Questions