Error pages not showing
I have Laravel metronic project , but when I try to access any routes that doesnot exist, it should show a error page, but im getting a background image always,
Im using metroinc 8
Replies (8)
Hi,
Non-existing routes will fall back to 404 error status and use this file as a view.
resources/views/errors/404.blade.php
This file has a background image.
Thanks
its already there the files exist in the path , but it not throwin an error
Can you please send the screenshot of the issue? You can use https://imgbb.com/ to send
Thanks
Sure , here is the link https://ibb.co/vLPCXBK
here the posts route not exists
We have these custom error pages. The error should throw either in these 2 error view files.
resources/views/errors/404.blade.phpresources/views/errors/500.blade.php
The error message should appear by this function.
$exception->getMessage()
If you want to disable the custom error page and use the default Laravel error page, you can remove those files.
Thanks
got the issue, in resources/views/errors/layout.blade.php
its written as
{{ theme()->getView('layout/errors', compact('slot')) }}
I changed to
{{ theme()->getView('layout/partials/_content', compact('slot')) }}
please update your repo also
Thank you for the help.
Hello,
Thanks for posting your solution, I had the same problem and it worked for me as well
Have a nice day.
By default, the error layout is pointing to the correct file.
Thanks