Replies: 1 comment 1 reply
-
Feel free to submit a PR to fix this 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I've tried to install this package but spotted a problem (incompatibility) with UUIDs.
I have a model where IDs are UUIDs, but your migrations use morphs that expect an ID field.
We're using Filament (v.3) but this problem is not connected to the external package it's on your own.
I'll fix that on my own with uuidMorphs.
Would you be able to put that in future releases?
Tech details
Filament 3.2.131
Laravel 11.36.1
PHP 8.3.15
laravel-medialibrary 11.11.0
spatie-laravel-media-library-plugin 3.2.131
The parent model is the Owner (aka property owner) with UUID as the primary ID key (data type is char(36)).
The media table has a UUID on its own, but the external model_id is indicated as "bigint(20) unsigned," which causes a problem.
Screenshot
Beta Was this translation helpful? Give feedback.
All reactions