thebigk
10 months ago

Customizing the message in Laravel's new error pages?

Posted 10 months ago by thebigk

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 -

  1. abort(404, "My Error Message")

  2. 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 sign in or create an account to participate in this conversation.