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
By default, the error layout is pointing to the correct file.
<img src="https://i.ibb.co/yV8hGmb/image.png" alt="image" border="0"><br />
https://github.com/KeenthemesHub/Metronic/blob/305d6419f26ef6fddb2b155177b6045bac214a90/laravel_app/resources/views/errors/layout.blade.php#L21
Thanks
We have these custom error pages. The error should throw either in these 2 error view files.
<pre
resources/views/errors/404.blade.php
resources/views/errors/500.blade.php
</pre>
The error message should appear by this function.
$exception->getMessage()
got the issue, in resources/views/errors/layout.blade.php
its written as
{{ theme()->getView("layout/errors", compact("slot")) }}
{{ theme()->getView("layout/partials/_content", compact("slot")) }}
Hello,
Thanks for posting your solution, I had the same problem and it worked for me as well
Have a nice day.
Can you please send the screenshot of the issue? You can use https://imgbb.com/ to send
Thanks
Hi,
Non-existing routes will fall back to 404 error status and use this file as a view.
resources/views/errors/404.blade.php
its already there the files exist in the path , but it not throwin an error