Skip to content

Fix custom error pages extending wrong Blade view namespace#18

Open
mlintangmz2765 wants to merge 1 commit into
mainfrom
codex/fix-all-bugs-4nrxdp
Open

Fix custom error pages extending wrong Blade view namespace#18
mlintangmz2765 wants to merge 1 commit into
mainfrom
codex/fix-all-bugs-4nrxdp

Conversation

@mlintangmz2765

Copy link
Copy Markdown
Owner

Motivation

  • Error templates in resources/views/errors/* attempted to extend a namespaced view (errors::layout) which can fail if the namespace is not registered, causing error pages to throw a secondary view-resolution exception.

Description

  • Replace @extends('errors::layout') with @extends('errors.layout') across the seven custom error templates (401, 403, 404, 419, 429, 500, 503) so Laravel resolves the local resources/views/errors/layout.blade.php correctly.

Testing

  • Ran php -l on PHP files (no syntax errors) and searched for remaining errors::layout usages (none found); composer test failed due to missing vendor/autoload.php and composer install could not complete because of network/proxy errors when fetching packages.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant