spatie / laravel-medialibrary

Associate files with Eloquent models
https://spatie.be/docs/laravel-medialibrary
MIT License
5.72k stars 1.07k forks source link

Media Library Attachment Not Working When Multiple #2185

Closed swartjie closed 3 years ago

swartjie commented 3 years ago

Hey Guys,

So I just followed the guide to setup the x-media-library-attachment front-end, and the dingle instance () works perfectly.

But as soon as I want to handle multiple files it fails... Not sure why though, Can you please help me debug?

<x-medialibrary-attachment multiple name="documents"/>

Response: Unable to locate a class or view for component [medialibrary-attachment].

swartjie commented 3 years ago

I just noticed the typo... There's a typo missing a - in the class name. The guide on your site https://spatie.be/docs/laravel-medialibrary/v9/handling-uploads-with-media-library-pro/handling-uploads-with-blade may just need to be updated :)

freekmurze commented 3 years ago

Feel free to send a PR to fix the docs (you'll find the docs as markdown files in the /docs directory of this repo)

eznix86 commented 1 month ago

Just writing for future users:

or use plank/laravel-mediable

https://freek.dev/536-comparing-laravel-mediable-with-laravel-medialibrary