Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
marco76tv committed Jun 14, 2024
1 parent e2dec0d commit a97826e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Filament/Blocks/ImageSpatie.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public static function make(
->collection(fn (Get $get) => $get('img_uuid'))
->afterStateUpdated(
function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, TemporaryUploadedFile $state, Get $get, HasMedia $record) {
$livewire->validateOnly($component->getStatePath());
// Call to an undefined method Filament\Forms\Contracts\HasForms::validateOnly().
// $livewire->validateOnly($component->getStatePath());
Assert::string($collection_name = $get('img_uuid'), '['.__LINE__.']['.__FILE__.']');
$res = $record
->addMedia($state)
Expand Down
3 changes: 2 additions & 1 deletion Filament/Blocks/VideoSpatie.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ public static function make(
->collection(fn (Get $get) => $get('img_uuid'))
->afterStateUpdated(
function (HasForms $livewire, SpatieMediaLibraryFileUpload $component, TemporaryUploadedFile $state, Get $get, HasMedia $record) {
$livewire->validateOnly($component->getStatePath());
// Call to an undefined method Filament\Forms\Contracts\HasForms::validateOnly().
// $livewire->validateOnly($component->getStatePath());
Assert::string($collection_name = $get('img_uuid'), '['.__LINE__.']['.__FILE__.']');
$res = $record
->addMedia($state)
Expand Down

0 comments on commit a97826e

Please sign in to comment.