hexadog / laravel-themes-manager

Bring multi themes support to your Laravel application with a full-featured Themes Manager
https://laravel-themes-manager.netlify.app
MIT License
149 stars 29 forks source link

Error pages are not working #82

Closed Biostate closed 5 months ago

Biostate commented 5 months ago

Hi, I added 404.blade.php to my theme but it's not working. File path is themes\vendor\default\resources\views\errors\404.blade.php. Is there any way to fix it?

Laravel: 10.48.4 laravel-themes-manager: 1.12.0

Thank you.

Biostate commented 5 months ago

When I dump view paths in /resources/views/errors/404.blade.php I didn't see my theme path. I don't know why.

array:1 [▼ // resources\views/errors/404.blade.php
  0 => "C:\laragon\www\MyProject\resources\views"
]
Biostate commented 5 months ago

So sorry, I added my ThemeLoader middleware to the web middleware array. I changed to global middleware. It's because of this.