keyduc
keyduc
FFilament
Created by JJSanders on 12/24/2023 in #❓┊help
Importing an order
same problem, did you solve it?
5 replies
FFilament
Created by keyduc on 3/2/2024 in #❓┊help
Can't import csv to resource
No description
7 replies
FFilament
Created by keyduc on 3/2/2024 in #❓┊help
Can't import csv to resource
No description
7 replies
FFilament
Created by keyduc on 3/2/2024 in #❓┊help
Can't import csv to resource
I see file import uploaded success on my digitalocean account, but URL AccessDenied hmmm
7 replies
FFilament
Created by keyduc on 3/2/2024 in #❓┊help
Can't import csv to resource
Working on Forms\Components\FileUpload Only Error on use Filament\Actions\Imports\Importer;
7 replies
FFilament
Created by keyduc on 2/27/2024 in #❓┊help
dependant selects cannot be searchable ?
Parent select here: Forms\Components\Select::make('product_id') ->label('Select Product') ->options(Product::all()->pluck('name', 'id')->toArray()) ->reactive() ->searchable() ->preload() ->afterStateUpdated(function (callable $set, $state) { $variants = ProductVariant::where('product_id', $state)->get(); if ($variants->isEmpty()) { $set('variant_options', []); } else { $set('variant_options', $variants->pluck('sku', 'id')->toArray()); } }) ->required(),
5 replies
FFilament
Created by keyduc on 2/27/2024 in #❓┊help
dependant selects cannot be searchable ?
Forms\Components\Select::make('variant_id')->relationship('productVariant') ->label('Select Variant') ->options(function (Get $get) { $variantOptions = $get('variant_options'); return $variantOptions ? $variantOptions : []; }) ->searchable() ->getSearchResultsUsing(fn (Get $get): array => $get('variant_options') ?? []) ->reactive() ->afterStateUpdated(function (Get $get, Set $set, $state) { if ($state) { $variant = ProductVariant::find($state); if ($variant) { $set('price', $variant->price * $get('quantity')); } } }) ->disabled(fn (callable $get) => empty($get('variant_options'))) ->required(), Only work when I remove ->searchable()
5 replies