Laravel-Backpack / community-forum

A workspace to discuss improvement and feature ideas, before they're actually implemented.
28 stars 0 forks source link

Backpack v6 assets path issue #575

Closed raviroshanmehta closed 1 year ago

raviroshanmehta commented 1 year ago

I downloaded new Laravel v10 and installed backpack v6. i can see assets urls are wrong in the theme and assets are not loading properly.

In config/backpack/ui.php i updated the name space -

'view_namespace' => 'backpack.theme-tabler::', 'view_namespace_fallback' => 'backpack.theme-tabler::',

Below screenshot will be helpful to understand the issue.

image

raviroshanmehta commented 1 year ago

After facing above issue i reinstalled backpack using php artisan backpack:install with default coreui theme. Eveything installed again but assets load issue still exists as referred in below screenshots.

image

image

raviroshanmehta commented 1 year ago

@tabacitu any quick work around for this ?

tabacitu commented 1 year ago

@raviroshanmehta is it possible you don't have your APP_URL set up correctly in your .ENV file?

pxpm commented 1 year ago

@raviroshanmehta is it possible you don't have your APP_URL set up correctly in your .ENV file?

This ☝️ or missing permissions to write in the storage/ folder or missing php artisan storage:link

raviroshanmehta commented 1 year ago

Issue was with APP_URL.

Laravel's default APP_URL is http://localhost . After updating APP_URL to http://127.0.0.1:8000 everything is working as expected.

Thanks @tabacitu for saving hours of efforts of developers for admin development.