Question

When laravel returns an error, the "message" property is truncated with an ellipses at the end. Many times I can't fully diagnose what's wrong because the message is not complete.

The image below shows an example error response from Laravel. The message is reporting that there is a syntax error in the query, but it's cut off so I don't know exactly where the syntax error is: Error response from Laravel

Any idea of how to get Laravel to show the full message?

Was it helpful?

Solution

You are trying to look it in your browser console, so it must be it truncating the message for you.

Take a look at your log file, it will show you the full message:

php artisan tail
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top