marianov24
marianov24
Explore posts from servers
FFilament
Created by marianov24 on 5/23/2024 in #❓┊help
Select using getSearchResultsUsing with preload
OK, I found a solution, use ->options and ->getSearchResultsUsing together. I don't know if this is the best solution. Can anyone confirm this?
3 replies
FFilament
Created by marianov24 on 12/19/2023 in #❓┊help
clean filters from Dashboard
I made a solution ... The filters are saved on session. So on custom page add mount function with session()->remove('Detalle_filters') I don't know if this is good, but is working 😄
4 replies
FFilament
Created by marianov24 on 12/21/2023 in #❓┊help
Custom Page with HasFiltersForm with submit button
i made a solution, on view page ask for filters, if i some filters are not empty then show widgets. So i don't need submit button.
3 replies
FFilament
Created by marianov24 on 12/21/2023 in #❓┊help
Custom Page with HasFiltersForm with submit button
Hi anyone can help me or give me a tip ?
3 replies
TLCTuto's Laravel Corner
Created by marianov24 on 12/20/2023 in #💡filament
Clean filters
i forget, on custom page, could dd :
public function filtersForm(Form $form): Form
{
dd($form);
return ......
}
public function filtersForm(Form $form): Form
{
dd($form);
return ......
}
i can see filters livewire-> filters , but i cannot access 😦
4 replies
FFilament
Created by marianov24 on 12/19/2023 in #❓┊help
clean filters from Dashboard
i add on ChartWidget.php
public function mount(): void
{
$this->filters = null;
$this->dataChecksum = $this->generateDataChecksum();
}
public function mount(): void
{
$this->filters = null;
$this->dataChecksum = $this->generateDataChecksum();
}
But i got an error Cannot mutate reactive prop [filters] How can i solve this ?
4 replies
FFilament
Created by marianov24 on 12/19/2023 in #❓┊help
clean filters from Dashboard
help please 😦
4 replies
FFilament
Created by marianov24 on 5/31/2023 in #❓┊help
List From a Model - Form and Save from another Model with Relationship
thanks, i going to read.
6 replies
FFilament
Created by marianov24 on 5/31/2023 in #❓┊help
List From a Model - Form and Save from another Model with Relationship
because of this i make two tables
6 replies
FFilament
Created by marianov24 on 5/31/2023 in #❓┊help
List From a Model - Form and Save from another Model with Relationship
I got the product information from a webhook, but some times we need add extra fields
6 replies
FFilament
Created by marianov24 on 5/5/2023 in #❓┊help
disable clickable row with getTableRecordActionUsing() not working
Thanks : getTableRecordActionUsing() not working getTableRecordUrlUsing() work
6 replies
FFilament
Created by marianov24 on 3/21/2023 in #❓┊help
Form keep loading
I can confirm that the problem was the select. I tried the Relationship and it works. Thank you
10 replies
FFilament
Created by marianov24 on 3/21/2023 in #❓┊help
Form keep loading
No description
10 replies
FFilament
Created by marianov24 on 3/21/2023 in #❓┊help
Form keep loading
Yes, is one record
10 replies
FFilament
Created by marianov24 on 3/5/2023 in #❓┊help
Relation Manager Resource with pivot - Custom Attach
Working:
->headerActions([
AttachAction::make()->label('Agregar')
->form(fn (): array => [
Forms\Components\Select::make('product_id')
->relationship('product','external_name')
->afterStateUpdated(fn (callable $set) => $set ('start',null))
->reactive()
->searchable()->required(),
Forms\Components\Select::make('recordId')
->options(function (callable $get){

$product = Product::find($get('product_id'));
if (!$product)
{
return [];
}
return $product->performances()->pluck('start','id');
})->required()

]),
])
->headerActions([
AttachAction::make()->label('Agregar')
->form(fn (): array => [
Forms\Components\Select::make('product_id')
->relationship('product','external_name')
->afterStateUpdated(fn (callable $set) => $set ('start',null))
->reactive()
->searchable()->required(),
Forms\Components\Select::make('recordId')
->options(function (callable $get){

$product = Product::find($get('product_id'));
if (!$product)
{
return [];
}
return $product->performances()->pluck('start','id');
})->required()

]),
])
9 replies
FFilament
Created by marianov24 on 3/5/2023 in #❓┊help
Relation Manager Resource with pivot - Custom Attach
I love filament and this wonderful community more and more
9 replies
FFilament
Created by marianov24 on 3/5/2023 in #❓┊help
Relation Manager Resource with pivot - Custom Attach
omg
9 replies
FFilament
Created by marianov24 on 3/5/2023 in #❓┊help
Relation Manager Resource with pivot - Custom Attach
I commented it because it adds another field for me. This field works to attach but I need to previously filter by products
9 replies