If you want to replace the default Laravel error pages (e.g. 401, 419, 500) then it’s pretty straightforward. All you need to do is create a new folder in the ‘views’ directory and call it ‘errors’. Then create your new error pages and use the following naming conventions: code.blade.php e.g. 500.blade.php. That’s it, these new pages will then override the default ones.