-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.5.3] Please fix hard coded path in ExceptionHandler->renderHttpException() #21138
Comments
I don't see this as a bug. You can open a proposal in laravel/internals or just shoot a PR |
You can override |
@themsaid please stop closing this. It's not ok to overwrite renderHttpException. Is this your work? |
@gdinko what's wrong with overriding? you can adapt the framework as per your use case, overriding makes it easier to adapt :) |
@themsaid please stop closing this. It's not ok to overwrite renderHttpException.
Before 5.5 version, this was working ok, please fix it, and stop closing this bug or i will contact someone else!!! |
@gdinko kindly respect the people here. He has every right to close the issue if he wants. As he said you can override the handler if you want. Also since you are building a package, it shouldn't be rendering any exceptions and relying on the "target" application to render |
No problem guys, here's a PR: #21145 |
Description:
Hard coded path in Exception Handler renderHttpException
When additional path is added to view (let's say if we implements themes), the exception handler seeks the 404.blade.php in resources/errors folder, not in the themes folder, and this is hard coded.
Steps To Reproduce:
view()->addLocation(realpath(base_path('resources/views/themes' . '/' . 'mytheme')));
Please fix this:
`protected function renderHttpException(HttpException $e)
{
$status = $e->getStatusCode();
to this:
`protected function renderHttpException(HttpException $e)
{
$status = $e->getStatusCode();
If you don't fix these the all idea about themes is useless.
The text was updated successfully, but these errors were encountered: