Wbzy
Wbzy
FFilament
Created by Wbzy on 10/16/2024 in #❓┊help
How to style each xlsx row in export action
is this possible?
2 replies
FFilament
Created by stanwarri on 8/6/2023 in #❓┊help
Using Custom Login Route for all Panels
@stanwarri did you find any solution?
17 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
no problem, glad it helps!
15 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
you can set the data after listen it, maybe something like this?
#[On('foundContact')]
public function foundContact($contact_id)
{
Log::info("Setting the form");
$contatto = Contact::find($contact_id);

$this->data['contact_id'] = $contatto->id;
$this->data['country'] = $contatto->country;
}
#[On('foundContact')]
public function foundContact($contact_id)
{
Log::info("Setting the form");
$contatto = Contact::find($contact_id);

$this->data['contact_id'] = $contatto->id;
$this->data['country'] = $contatto->country;
}
15 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
you need to pass the livewire id to the view like this
->modalContent(function (Component $livewire, Forms\Get $get) {
return view('filament.modal.tablemodal', [
'componentId' => $livewire->getId(),
'customerId' => $get('customer_id'),
]);
})
->modalContent(function (Component $livewire, Forms\Get $get) {
return view('filament.modal.tablemodal', [
'componentId' => $livewire->getId(),
'customerId' => $get('customer_id'),
]);
})
and mount it in your table livewire component
// in blade
<livewire:bank-in-table-modal
:componentId="$componentId"
:customer_id="$customerId"
/>

// in livewire
public ?string $componentId = null;

public ?string $customer_id = null;

public function mount($componentId, $customer_id)
{
$this->componentId = $componentId;
$this->customer_id = $customer_id;
}
// in blade
<livewire:bank-in-table-modal
:componentId="$componentId"
:customer_id="$customerId"
/>

// in livewire
public ?string $componentId = null;

public ?string $customer_id = null;

public function mount($componentId, $customer_id)
{
$this->componentId = $componentId;
$this->customer_id = $customer_id;
}
15 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
in the table bulk action i use 2 dispatch one for passing the data, and the other for closing the modal.
$livewire->dispatch('attach-record', data: $record->select(['id'])->first());
$livewire->dispatch('close-modal', id: $this->componentId.'-form-component-action');
$livewire->dispatch('attach-record', data: $record->select(['id'])->first());
$livewire->dispatch('close-modal', id: $this->componentId.'-form-component-action');
and listen it in the create file
#[On('attach-record')]
public function useRecord($data)
{
$this->data['id'] = $data['id'];
}
#[On('attach-record')]
public function useRecord($data)
{
$this->data['id'] = $data['id'];
}
15 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
i did
15 replies
FFilament
Created by Ostap Brehin 🇺🇦 on 12/24/2023 in #❓┊help
Table action that opens a modal with a table inside? (how to use `->table` on an action?)
use ->modalContent(view('filament.modal.tablemodal')) like this and add livewire component inside
4 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
good to hear
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
public function endGame()
{
return Action::make('End')
->icon('heroicon-m-no-symbol')
->color('danger')
->action(function (array $data): void {
(new SessionService)->addGame($this->session, $data);
});
}
public function endGame()
{
return Action::make('End')
->icon('heroicon-m-no-symbol')
->color('danger')
->action(function (array $data): void {
(new SessionService)->addGame($this->session, $data);
});
}
like this
13 replies
FFilament
Created by ashar on 12/8/2023 in #❓┊help
action not working
try (new SessionService)->addGame($this->session, $data);
13 replies
FFilament
Created by Vp on 12/8/2023 in #❓┊help
image not displayed on edit
that guy spam in every post
7 replies
FFilament
Created by Wbzy on 12/8/2023 in #❓┊help
How to listen to dispatch events in form?
or is there any other way to pass the data ?
15 replies
FFilament
Created by Wbzy on 11/28/2023 in #❓┊help
Multiple select as table with checkbox
any idea how to made it?
2 replies
FFilament
Created by Rikita on 11/9/2023 in #❓┊help
Please help! I can not use brandLogo() in V3
ok fixed
7 replies
FFilament
Created by Rikita on 11/9/2023 in #❓┊help
Please help! I can not use brandLogo() in V3
should i delete the composer lock first?
7 replies
FFilament
Created by Rikita on 11/9/2023 in #❓┊help
Please help! I can not use brandLogo() in V3
i run composer update and still doesnt exists
7 replies
FFilament
Created by Wbzy on 11/6/2023 in #❓┊help
How to show Count relationship in table?
No description
4 replies
FFilament
Created by Wbzy on 11/6/2023 in #❓┊help
How to show Count relationship in table?
oke i found the solution using
->defaultGroup('category')
->groupsOnly();
->defaultGroup('category')
->groupsOnly();
4 replies
FFilament
Created by Wbzy on 11/6/2023 in #❓┊help
Halt doesnt stop the editing proccess?
can you show me an example to make a Unique Validation for Multiple Columns in filament?
5 replies