Romaldy
Romaldy
FFilament
Created by nostrodamned on 9/21/2023 in #❓┊help
undefined variable $activeTab in listPage Class
thak you homie
8 replies
FFilament
Created by nostrodamned on 9/21/2023 in #❓┊help
undefined variable $activeTab in listPage Class
No description
8 replies
FFilament
Created by Crylar on 4/14/2023 in #❓┊help
Is it possible to group SpatieMediaLibraryFileUpload files under a directory?
Could you please tell me what i'm missing to make it work ?
15 replies
FFilament
Created by Crylar on 4/14/2023 in #❓┊help
Is it possible to group SpatieMediaLibraryFileUpload files under a directory?
where $this->record is the object with the data already
15 replies
FFilament
Created by Crylar on 4/14/2023 in #❓┊help
Is it possible to group SpatieMediaLibraryFileUpload files under a directory?
@Dan Harrin can you help me with this ? I'm trying to have a spatie media library in a popup from a page action like this.
Filament\Pages\Actions\Action::make($name)
->label(__('Attachments'))
->icon('heroicon-o-paper-clip')
->iconButton()
->modalWidth('xl')
->modalButton(__('Save'))
->slideOver()
->record($this->record)
->model($record::class)
->mountUsing(function (ComponentContainer $form, $record) {
$form->fill($record->toArray());
})
->action(function (array $arguments, ComponentContainer $form): void {
$model = $this->record::class;
$record = $this->record;
$form->model($record)->saveRelationships();
})
->form([
SpatieMediaLibraryFileUpload::make('attachments')
->disk('documents')
->multiple()
->responsiveImages()
->columnSpanFull(),
]);
Filament\Pages\Actions\Action::make($name)
->label(__('Attachments'))
->icon('heroicon-o-paper-clip')
->iconButton()
->modalWidth('xl')
->modalButton(__('Save'))
->slideOver()
->record($this->record)
->model($record::class)
->mountUsing(function (ComponentContainer $form, $record) {
$form->fill($record->toArray());
})
->action(function (array $arguments, ComponentContainer $form): void {
$model = $this->record::class;
$record = $this->record;
$form->model($record)->saveRelationships();
})
->form([
SpatieMediaLibraryFileUpload::make('attachments')
->disk('documents')
->multiple()
->responsiveImages()
->columnSpanFull(),
]);
15 replies
FFilament
Created by Crylar on 4/14/2023 in #❓┊help
Is it possible to group SpatieMediaLibraryFileUpload files under a directory?
Hi everyone
15 replies