SpatieMediaLibraryFileUpload in Custom Page
I have a customized page with a form, the media relationship is working fine, but the image is not displayed in the media input.
✅ APP_URL
Solution:Jump to solution
SOLVED:
Inside the
SpatieMediaLibraryFileUpload.php
, first we need to load('media') record and after getMedia.
```php...1 Reply
Solution
SOLVED:
Inside the
SpatieMediaLibraryFileUpload.php
, first we need to load('media') record and after getMedia.
To not change the package files directly, we can add the load in the mount() custom page method: