In 5.7 we can publish error pages with vendor:publish
This worked for me in my case when I had to change the error pages.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Apparently, this is straightforward, but I'm unable to find out how. There are new error pages in Laravel 5.7; which I like. I only want to be able to customize the 'text' shown on the error page. Is that possible? I've tried the obvious ones -
abort(404, "My Error Message")
Created custom 404.blade.php inside errors but it simply replaces the default error page with mine.
Would appreciate help. Thank you in advance.
Please or to participate in this conversation.