Cyrillus Dodi
Cyrillus Dodi
FFilament
Created by Stfn on 1/2/2024 in #❓┊help
DeleteAction, delete items in public/storage?
What if it's not relationship, let's say like from an array?
17 replies
FFilament
Created by l33tneko on 8/15/2023 in #❓┊help
Refresh table in livewire component
do you find the solution?
6 replies
FFilament
Created by lodeki on 9/2/2023 in #❓┊help
Add content for the tabs blade component
can you share the solution?
15 replies
FFilament
Created by Cyrillus Dodi on 4/28/2023 in #❓┊help
How to selected value for edit form
okay solved thanks
5 replies
FFilament
Created by Cyrillus Dodi on 4/28/2023 in #❓┊help
How to selected value for edit form
yes I did, I tried with TextInput and it works, but not with Select component here is my code
public $organization;


public function mount(Organization $organization)
{
$this->organization = $organization;

$this->form->fill([
'organizationId' => $organization->id,
]);
}

protected function getFormSchema(): array
{
return [
Forms\Components\Select::make('organizationId')
->options(Organization::all()->pluck('name', 'id'))
->searchable(),
}
public $organization;


public function mount(Organization $organization)
{
$this->organization = $organization;

$this->form->fill([
'organizationId' => $organization->id,
]);
}

protected function getFormSchema(): array
{
return [
Forms\Components\Select::make('organizationId')
->options(Organization::all()->pluck('name', 'id'))
->searchable(),
}
5 replies