biebthesecond
biebthesecond
FFilament
Created by hosmar27 on 4/9/2025 in #❓┊help
How to use a file from other project
That ofcourse also works, setting up a separate accessible file storage 👍
11 replies
FFilament
Created by hosmar27 on 4/9/2025 in #❓┊help
How to use a file from other project
It's a bit of work sadly, but it's definitely the least hacky and securest way to go about it
11 replies
FFilament
Created by hosmar27 on 4/9/2025 in #❓┊help
How to use a file from other project
Also unrelated, but quick tip to tidy your code up
if (empty($record->attachments->url)) {
return true;
} else {
return false;
}
if (empty($record->attachments->url)) {
return true;
} else {
return false;
}
Can be simplified to:
return empty($record->attachments->url)
return empty($record->attachments->url)
and if you want to use an inline callback you can also do:
fn($record): bool => empty($record->attachments->url)
fn($record): bool => empty($record->attachments->url)
11 replies
FFilament
Created by hosmar27 on 4/9/2025 in #❓┊help
How to use a file from other project
The best is to probably set up an API endpoint in your other project you can call.
11 replies
FFilament
Created by WarMan on 4/6/2025 in #❓┊help
Help
You might need to provide some more information so people can help you
4 replies
FFilament
Created by Daniel on 4/7/2025 in #❓┊help
How to get state with relationships?
I'm pretty sure if you use $get() without any parameters you will get all form data. Ofcourse this only works if you're using a Filament form. But I'm assuming that's what you're using
3 replies
FFilament
Created by Dan Harrin on 2/27/2025 in #❓┊help
Help Us Improve Filament’s Docs & Education in v4
Some more simple code snippets like in the "Advanced forms, reactivity cookbook" would be nice. Sometimes there's small features which are handy like form fields only visible on create / edit page, or programmatically saving a resource edit page with ->before(fn ($livewire) => $livewire->save()) for example
81 replies
FFilament
Created by biebthesecond on 3/11/2025 in #❓┊help
Saving resource when executing Action
My goodness that is perfect, thank you so much! 🙏
5 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.
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