HansSchouten / Laravel-Pagebuilder

A drag and drop pagebuilder to manage pages in any Laravel project
https://www.phpagebuilder.com
MIT License
799 stars 184 forks source link

CSS wont load #80

Closed JonaSui closed 3 years ago

JonaSui commented 3 years ago

Dear Hans schouten,

I am trying to link the css as the demo does. However it’s not working for me unfortunately. I’m getting the following error message: [Resource interpreted as Stylesheet but transferred with MIME type text/html: "".] image image

Best regards,

Jonathan

HansSchouten commented 3 years ago

I think it is because of the port number in your URL that the phpb_theme_asset method is not recognizing the routes properly. I never work with local URLs, so it could be that this is the cause and it would go unnoticed for me. If you inspect the responses of the URLs you show in the console screenshot it probably shows more details.

JonaSui commented 3 years ago

Hi hans ive managed to fix it my pathing was wrong because of the PHPB_THEME_ASSET. But ive routed it correctly now thanks !!!