fikurimax
fikurimax
Explore posts from servers
FFilament
Created by fikurimax on 10/5/2024 in #❓┊help
Push notification on error 500
How to push notification when there's an error instead of showing modal?
5 replies
FFilament
Created by fikurimax on 9/13/2024 in #❓┊help
Is there a way to show search input for each column?
Hi, I wonder if it's possible to show search input for every column on the table? I know I can get the same output by just using filters, im just curious
4 replies
FFilament
Created by fikurimax on 8/21/2024 in #❓┊help
Get modal ID on the table action
How to get the modal ID from table action? or can we set it manually? I'd like to dispatch close-modal event to close the modal. Currently the modal content is another livewire component, so I thought I can close the modal by dispatching the close-modal event to the modal id
3 replies
FFilament
Created by fikurimax on 8/20/2024 in #❓┊help
Using core blade component select with search ability
How to implement search ability on select blade component? https://filamentphp.com/docs/3.x/support/blade-components/select
1 replies
FFilament
Created by fikurimax on 8/19/2024 in #❓┊help
Table with third party API data
No description
8 replies
FFilament
Created by fikurimax on 8/5/2024 in #❓┊help
Disable navigation in one resource but still shown
How to make a navigation resource is still shown but disabled / not clickable?
6 replies
FFilament
Created by fikurimax on 8/1/2024 in #❓┊help
Update request took so long (only for updating another field)
No description
20 replies
FFilament
Created by fikurimax on 7/16/2024 in #❓┊help
Listen to specific custom modal event
How can I listen to a specific custom modal when it's closing? I tried to use directive @close-modal but that doesn't work. But when I use @close-modal.window / @close-modal.outside, it works but that results the function runs many times
2 replies
FFilament
Created by fikurimax on 7/6/2024 in #❓┊help
Lazy load select options after clicking the element
How to populate the options (in my case is requesting to another server) when the element is clicked. My problem now is the option() will obtain the data immediately whenever the select element shown, which in my case sometimes can cause timeout (so the loading also took so long)
2 replies
FFilament
Created by fikurimax on 5/18/2024 in #❓┊help
Add Action group in a custom infolist layout
I have a custom infolist layout which doing a for loop. And on each item there is a button that will do something with the item on the loop. The error occurs when I click the button ("Confirm"), it says App\Livewire\Modals\BillingCustomerInvoiceList::getInfolist(): Argument #1 ($name) must be of type string, null given. Any workarounds? This is the custom layout I have
<div>
@if ($this->invoices->isNotEmpty())
@foreach ($this->invoices as $invoice)
<div class="flex flex-row gap-2 rounded-lg bg-gray-900 mx-2 p-4">
<div class="grow flex flex-col gap-2">
...
</div>
<div class="grow-0 flex flex-col">
{{ $this->confirmAction($invoice->id) }}
</div>
</div>
@endforeach
@else
<div class="flex flex-col items-center justify-center">
Unavailable
</div>
@endif

<x-filament-actions::modals />
</div>
<div>
@if ($this->invoices->isNotEmpty())
@foreach ($this->invoices as $invoice)
<div class="flex flex-row gap-2 rounded-lg bg-gray-900 mx-2 p-4">
<div class="grow flex flex-col gap-2">
...
</div>
<div class="grow-0 flex flex-col">
{{ $this->confirmAction($invoice->id) }}
</div>
</div>
@endforeach
@else
<div class="flex flex-col items-center justify-center">
Unavailable
</div>
@endif

<x-filament-actions::modals />
</div>
And this is the confirmAction() on the main infolist modal
public function confirmAction(int $invoiceId): ActionGroup
{
return ActionGroup::make([
Action::make('confirm_action')
->label('Confirm')
->requiresConfirmation()
->action(function () {
dd('confirm');
})
]);
}
public function confirmAction(int $invoiceId): ActionGroup
{
return ActionGroup::make([
Action::make('confirm_action')
->label('Confirm')
->requiresConfirmation()
->action(function () {
dd('confirm');
})
]);
}
1 replies
FFilament
Created by fikurimax on 5/16/2024 in #❓┊help
Populate options when clicking the select element
My select options are obtained from third party API and there is a possibility that the API is taking too long to respond. Currently the options are populated right after the select element is mounted which took the loading so long. How can I populate the options when I click the select element?
14 replies
FFilament
Created by fikurimax on 5/3/2024 in #❓┊help
Refreshing resource on a custom action in a widget
I have a custom widget which contains an action button (opening a modal and doing some things). I want to refresh the resource (table) whenever the action modal is finished. How can I do that? Any help appreciated thank you
2 replies
FFilament
Created by fikurimax on 2/4/2024 in #❓┊help
Update field state every time other field updated without using $set()
I want to make my field (e.g total) updated every time I change other fields (e.g tax, price, discount). Using $set on each field is quite complicated, is it possible to update it on the total field instead?
14 replies
RRailway
Created by fikurimax on 1/30/2024 in #✋|help
Env variable can't be read by laravel
No description
11 replies
FFilament
Created by fikurimax on 1/25/2024 in #❓┊help
How to stop request update polling
No description
1 replies
FFilament
Created by fikurimax on 1/25/2024 in #❓┊help
Custom login / register -like page
I want to add a custom layout that can be accessed on the login/register page. How can I extend main layout? The login/register itself is customized using livewire page, and I want to make another custom page. Here are the changes I've made 1. Register the livewire page on web.php 2. Redirect using redirect()->route('custom-page') from the login/register 3. extend <x-filament-panels::page.simple> but got error undefined vars
2 replies
FFilament
Created by fikurimax on 10/15/2023 in #❓┊help
Show loading on dependant select options
Is there a way to show loading icon like spinning bar when using this? https://filamentphp.com/docs/3.x/forms/advanced#dependant-select-options
1 replies
FFilament
Created by fikurimax on 9/6/2023 in #❓┊help
Change background color
No description
9 replies
FFilament
Created by fikurimax on 9/5/2023 in #❓┊help
Where to apply non-sticky topbar css?
No description
12 replies
FFilament
Created by fikurimax on 9/4/2023 in #❓┊help
Insert button before notification
No description
7 replies