Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

DevMaster's avatar

Why can't set custom message with abort()

Hello everybody,

So I'm just wondering why, with out-of-the-box laravel 5.7, abort(403, 'My custom text') sets my custom text BUT if I do the same for 404 or 500 it doesn't set my custom text?

This is unusual.

Kind regards, Dev

0 likes
4 replies
DevMaster's avatar

@TANGENTE - I can't find these Blades to be honest. Are they in /vendor or do they get published somewhere in my app's codebase?

DevMaster's avatar

Thanks for all the advice guys, much appreciated.

1 like

Please or to participate in this conversation.