Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

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
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (8)


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()


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.



Can you please send the screenshot of the issue? You can use https://imgbb.com/ to send

Thanks



Sure , here is the link
here the posts route not exists



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


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(