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

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

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.php
resources/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 happy

Have a nice day.

Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(