biebthesecond
biebthesecond
FFilament
Created by xdtyreswgsia on 2/7/2025 in #❓┊help
How to make viewaction. used my external api data instead of the Model data.
Let me know if it works, I have to solve something like this soon as well
7 replies
FFilament
Created by xdtyreswgsia on 2/7/2025 in #❓┊help
How to make viewaction. used my external api data instead of the Model data.
Now I just woke up, but maybe if the pagination gets stored in a ur query param you could use the URL facade to get that param and pass it to your api
7 replies
FFilament
Created by xdtyreswgsia on 2/7/2025 in #❓┊help
How to make viewaction. used my external api data instead of the Model data.
You could try using the Sushi package? And connect that to your api
7 replies
FFilament
Created by gigiloouu on 1/29/2025 in #❓┊help
refresh after filter
What data are you filtering? We’re talking about filament tables right?
25 replies
FFilament
Created by Señor Nikola on 1/29/2025 in #❓┊help
Dispatch Event on AfterStateUpdated()
Cool it works! Maybe you could even do $livewire->dispatch('update-counter') directly in the afterStateUpdated, saves some code. Unless you use that method at other spots. Happy coding! Don't forget to set this thread as solved :D
10 replies
FFilament
Created by jamesro on 1/29/2025 in #❓┊help
Set css class per repeater item
Okay repeater is definitely the correct field to use then. Well I'm not sure if there's a solution for that. But like I said, you could try to send in a PR and they could include it in filament
11 replies
FFilament
Created by Señor Nikola on 1/29/2025 in #❓┊help
Dispatch Event on AfterStateUpdated()
Maybe not the prettiest solution, but maybe it works
10 replies
FFilament
Created by Señor Nikola on 1/29/2025 in #❓┊help
Dispatch Event on AfterStateUpdated()
You could try to pass the livewire instance as a parameter? Then you could use that to call ->dispatch()
10 replies
FFilament
Created by biebthesecond on 1/29/2025 in #❓┊help
Filament Action on livewire page not mounting/throwing error
Okay I solved it, ofcourse it had to be the stupidest thing ever. In the top livewire component there was a div that wasn't properly being closed 🥹
6 replies
FFilament
Created by biebthesecond on 1/29/2025 in #❓┊help
Filament Action on livewire page not mounting/throwing error
So I'm one step further, its apparently nothing do with basically everything I tried. But there's some confusion in some livewire componenets I'm calling earlier in the page, when I comment the first one out the Actions work again 🤔
<header class="flex items-center justify-between border-b border-gray-200 px-2 py-4 lg:flex-none">
<h1 class="text-xl font-semibold leading-6 text-gray-900 dark:text-white">
<time datetime="{{ $startOfWeek->isoFormat('Y-MM') }}">
{{ ucfirst($startOfWeek->isoFormat('MMMM')) }} {{ $currentYear }} | Week {{ $currentWeek }}
</time>
</h1>

<div class="flex items-center">
<livewire:schedule-week-switcher :currentYear="$currentYear" :currentWeek="$currentWeek" />
<livewire:schedule-week-selector/>

<livewire:schedule-legend-dropdown :schedules="$schedules"/>
<livewire:overdue-schedules-dropdown/>
<livewire:schedule-type-dropdown wire:key="schedule-type-dropdown"/>
</div>
</header>
<header class="flex items-center justify-between border-b border-gray-200 px-2 py-4 lg:flex-none">
<h1 class="text-xl font-semibold leading-6 text-gray-900 dark:text-white">
<time datetime="{{ $startOfWeek->isoFormat('Y-MM') }}">
{{ ucfirst($startOfWeek->isoFormat('MMMM')) }} {{ $currentYear }} | Week {{ $currentWeek }}
</time>
</h1>

<div class="flex items-center">
<livewire:schedule-week-switcher :currentYear="$currentYear" :currentWeek="$currentWeek" />
<livewire:schedule-week-selector/>

<livewire:schedule-legend-dropdown :schedules="$schedules"/>
<livewire:overdue-schedules-dropdown/>
<livewire:schedule-type-dropdown wire:key="schedule-type-dropdown"/>
</div>
</header>
6 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
For example, if you were to add a normal "IsGreaterThan" operator which would add a "WHERE". Is that appended to the final query? (the one you see in your debugbar)
23 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
Mmmmh, although I'd love to. I'm not sure if I have a solution :(
23 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
Oh like that, yeah that could be the case 🤔 Sounds like some deep Filament black magic 😵‍💫
23 replies
FFilament
Created by waterflai on 1/29/2025 in #❓┊help
Fileupload in Single record editing with custom page
Also, when using the data from your form you should use: $data = $this->form->getState()
36 replies
FFilament
Created by waterflai on 1/29/2025 in #❓┊help
Fileupload in Single record editing with custom page
36 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
So you're not sure if the "$query->having($qualifiedColumn, '>', $value);" is being triggered? Maybe try to debug if adding anything to the query works there and see what it ends up with?
23 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
Okay that does make sense
23 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
I haven't actually used query builders myself yet, so I don't know the full extend of the functionality that's available
23 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
But why use a query builder? Is there a reason a "normal" filter wouldn't work?
23 replies
FFilament
Created by M3TAGH0ST on 1/29/2025 in #❓┊help
Table Query Builder with Constraints
You seem to be doing quite well for working with it for just a week haha
23 replies