Closed omarherri closed 8 months ago
@omarherri Have you tried running
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="medialibrary-views"
This follows the same format as the other publish commands, even though the docs indicate "views" as the correct tag. Please let me know if you still run into an issue, and I'll dig in and get to the bottom of it! :+1:
@patinthehat, I tried your solution, but I still received the same message: "No publishable resources for tag [medialibrary-views]."
So, I looked up the package and noticed that the views are declared under the 'media-library' name in the service provider. Therefore, I modified the command to:
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="media-library-views"
And it worked for me! Thank you for pointing me in the right direction.
@omarherri thank you for the update, I'll update the docs accordingly! :+1:
To customizing the rendered HTML i tried to publish the view as mentioned in the documentation using:
php artisan vendor:publish --provider="Spatie\MediaLibrary\MediaLibraryServiceProvider" --tag="views"
But this returned No publishable resources for tag [views].