Replies: 2 comments
-
In our demo app (https://github.com/spatie/laravel-medialibrary-pro-app) you can see various examples on how you can use the media library pro components. Could you check if it works for you there? |
Beta Was this translation helpful? Give feedback.
0 replies
-
hi @freekmurze, Thanks for your reply. I try to install the Laravel-medialibrary-pro-app on my Mac. I get this message when I run It says Any ideas? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I just got the media library-pro. I'm trying to add a photo using a livewire component.
I have prepared my model as explained. and I followed this tutorial: https://spatie.be/docs/laravel-medialibrary/v9/handling-uploads-with-media-library-pro/handling-uploads-with-livewire
I've notice the table media and temporary_uploads are being populated but nothing is being saved when I check "storage/app/public"
`namespace App\Http\Livewire\Organization;
use App\Models\Organization;
use Livewire\Component;
use Spatie\MediaLibraryPro\Http\Livewire\Concerns\WithMedia;
class Form extends Component
{
use WithMedia;
public Organization $organization;
public $mediaComponentNames = ['logo'];
public $logo;
I also notice I cannot use withResponsiveImages() method, is this a problem of addFromMediaLibraryRequest()?
I don't know if there is a bug or if I'm just missing something.
Beta Was this translation helpful? Give feedback.
All reactions