Replies: 2 comments 2 replies
-
Bump... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Don't use your main app template as the base template for your error pages. I treat error pages as something that should both have a minimal output and use minimal services from the application (especially in the case of 500 range errors). |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
I am currently battling with Livewire and the session middleware because I am sharing the app layout with the following error pages: 404, 401, 403 and 419 and i have a question.
How do you handle this pages? Is there a good and intuitive way to include the session in this side of the application?
I don't find the normal "laravel" way to be very intuitive.
Like, i am having a lot of issues getting the session to work in those pages, i know i can just move outside of the 'web' group and make them global, but this is beating the point as this means that i will try to start a session for each api call on my app that is stateless.
So is there a better way to make this errors be part of the app? I already managed to fix the 404 page ( for a route that is not matched in my application ) using a route fallback, but how can i make the normal error pages work normally?
Beta Was this translation helpful? Give feedback.
All reactions