Luiz
Luiz
FFilament
Created by Luiz on 7/1/2024 in #❓┊help
Spatie Media Library records media but does not display it.
I am using the Spatie Media Library package (https://filamentphp.com/plugins/filament-spatie-media-library). In the form I created the upload:
Forms\Components\SpatieMediaLibraryFileUpload::make('media')
->label('')
->multiple()
->image()
->imageEditor()
->reorderable()
->appendFiles()
Forms\Components\SpatieMediaLibraryFileUpload::make('media')
->label('')
->multiple()
->image()
->imageEditor()
->reorderable()
->appendFiles()
After saving the form, the media record is created in the Media table correctly, but the media disappears from my form as if it were empty. I also have the media column in my table (which I previously used with common upload), but nothing is saved in it. I believe it is not necessary. However, on my blade page I am trying to display the image but the return is empty:
$record->getFirstMediaUrl()
$record->getFirstMediaUrl()
What am I doing wrong?
25 replies
FFilament
Created by Luiz on 3/23/2024 in #❓┊help
disableOptionWhen
In the Relation Manager form I am using a Select. However, I want to disable the option that has already been used.
->disableOptionWhen(function (string $value) {
/* CHECK IF $VALUE ALREADY EXISTS WITH SAME PRODUCT_ID */
/* IF TRUE, DISABLE OPTION */
})
->disableOptionWhen(function (string $value) {
/* CHECK IF $VALUE ALREADY EXISTS WITH SAME PRODUCT_ID */
/* IF TRUE, DISABLE OPTION */
})
2 replies
FFilament
Created by Luiz on 1/2/2024 in #❓┊help
More than one invoice simultaneously.
No description
5 replies
FFilament
Created by Luiz on 12/30/2023 in #❓┊help
relation manager in tab
How do I insert the relation manager in my own tab? I have tabs in the form and I want to insert the relation manager in one of these tabs.
5 replies