Skip to content

Conversation

@crynobone
Copy link
Member

This show a working example on how to setup truncation in bootstrap/app.php as the previous code usage doesn't work on web request.

ApplicationBuilder::withExceptions($using) method only resolves the $using callback after resolving Illuminate\Foundation\Exceptions\Handler. Therefore, any value set via new RequestException($response) will only consist of resolved prepareMessage() value before Handler.

This show a working example on how to setup truncation in `bootstrap/app.php` as the previous code usage doesn't work on web request. 

> `ApplicationBuilder::withExceptions($using)` method only resolves the `$using` callback after resolving `Illuminate\Foundation\Exceptions\Handler`. Therefore, any value set via `new RequestException($response)` will only consist of resolved  `prepareMessage()` value before `Handler`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants