Why are my custom error pages not being called?

4

My custom error page is not being called.

  • OS: Linux Ubuntu
  • PHP 7 / Laravel 5.5
  • I have already created the folder "resources / errors" and in it the file "404.blade.php"
  • I have already given permission on the OS to the folder
  • I have already used the php artisan cache: clear and php artisan view: clear commands.
  • I changed the .env file to "debug" to false.

Anyway, these were the actions I took.

    
asked by anonymous 28.08.2017 / 15:49

1 answer

4

I think the error is in the path to the errors folder, it must be in resources/views/errors .

Example for testing:
- Create 404.blade.php file inside the folder I mentioned above
- Access a url that is not defined in app/HTTP/routes.php or routes/web.php (in later versions of Laravel) and confirm if you go to this new page 404.blade.php

From here you can customize it any way you like.

    
28.08.2017 / 15:56