Improve View not found exception to include which view threw the error. #46965
Unanswered
JABirchall
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Laravel Version
10.8.0
PHP Version
8.1.10
Database Driver & Version
unneeded
Description
When working with a large project which reuses alot of view components in different places, the error of a view not found, should include which view is attempting to include the component.
example of current error when a view is not found
The error in this view is a typo in the path, easy fix, if i knew which view this error was in.
This should also include the view in which this view is not found from.
eg.
This instantly give the developer the infomation of where the view error is.
Steps To Reproduce
Make an error
@include
in a view.Load the page.
Observe view error.
Beta Was this translation helpful? Give feedback.
All reactions