Why doesn't admin styles load in Laravel 10 in production?

163 Views Asked by At

I'm a newbie with laravel and I'm having problems that I hope you can help me to fix.

It is a project that I have locally with Laravel v10.9.0 (PHP v8.1.10). I have AdminLte installed with https://github.com/jeroennoten/Laravel-AdminLTE/wiki.

I have moved the project to a server that is managed and to which I have no console access (I can't run php artisan).

The laravel home page is the default one for the installation, I have only worked on the backend part of the project and the styles are loaded without problem.

But when I enter some of the paths that I have locally that load the admin dashboard the styles are not loaded. Looking at the code I see the following style, in my project in local, mydomain.com/vendor/adminlte/dist/css/adminlte.min.css and if I access to this domain I see all the css code.

However if I do the same on the web server I don't see anything, it doesn't give any error, but the page is blank. On the web server if I modify the url and before /vendor I put /public to get mydomain.com/public/vendor/adminlte/dist/css/adminlte.min.css I see the css with all the styles.

Can anyone know what is going on? I cleared the caches manually, config, views, routes, but everything is still the same. Thanks!

I cleared the caches manually, config, views, routes, but everything is still the same.

0

There are 0 best solutions below