Custom 401 error page

Posted 9 months ago by ochirach


Version: 5.4

I want all by error views to match the application theme, rather than a white page with the error text on the top-left.

It seems that doing this for 404 errors is as simple as creating a file in views/errors/404.blade.php. This works fine.

But the same does not occur for error 401. Is it best practice to customize this 401 error page?

If so, what extra steps are required as I assumed it was as simple as creating a new error file.


Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up


Reply to

Use Markdown with GitHub-flavored code blocks.