ErrorException
file_get_contents(http://localhost:6080/css/elasticutNova.css): Failed to open stream: Cannot assign requested address
However, from my browser, I can access this URL http://localhost:6080/css/elasticutNova.css just fine
I think it's to do with PHP inside Sail trying to access the external address using file_get_contents, and failing, because it's obviously not a docker address
this is from vendor/laravel/nova/src/Http/Controllers/StyleController.php:28
Please follow guide from our documentation, above video was release 2 years ago and using asset() with file_get_contents() would require you to enable allow_url_fopen
Description:
I'm running Nova on Sail, and I wanted to add a custom button colour. I followed @davidhemphill 's video up to 1:20 to try and get any css file to show https://www.youtube.com/watch?v=InK-mRH9z5M&t=85s However, http://localhost:6080/nova-api/styles/elasticutNova gives me
However, from my browser, I can access this URL
http://localhost:6080/css/elasticutNova.css
just fineI think it's to do with PHP inside Sail trying to access the external address using file_get_contents, and failing, because it's obviously not a docker address
this is from
vendor/laravel/nova/src/Http/Controllers/StyleController.php:28
Detailed steps to reproduce the issue on a fresh Nova installation: