Thandruil
Thandruil
FFilament
Created by Anouar on 10/10/2023 in #❓┊help
errer
Also it would be quite inefficient to calculate counts like this. It’s better to make it part of the query using an aggregate (withCount ) for example.
14 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
I tried listening to updated$propname but to no avail
18 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
is there a way in user land to trigger the afterStateUpdated somehow?
18 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
yeah fair
18 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
Yeah that's the fix I was thinking about as well
18 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
Remove calls Filament's own removeFormUploadedFile which only sets the state using state(...)
18 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
So upload uses Livewire's native finishUpload which calls syncInput (and thus afterStateUpdated)
18 replies
FFilament
Created by Thandruil on 6/15/2023 in #❓┊help
[V3] Removing upload from FileUpload does not trigger `afterStateUpdated`
No it's actually sending a message to server.
18 replies
FFilament
Created by Thandruil on 5/30/2023 in #❓┊help
Expose group of fields as a new single reusable field
Thanks mate!
18 replies
FFilament
Created by Thandruil on 5/30/2023 in #❓┊help
Expose group of fields as a new single reusable field
👌
18 replies
FFilament
Created by Thandruil on 5/30/2023 in #❓┊help
Expose group of fields as a new single reusable field
Hmm yes so for example i have this form
$form->schema([
MonetaryInput::make('price'),
])
$form->schema([
MonetaryInput::make('price'),
])
which would ideally result in
{
"price": "£123.00"
}
{
"price": "£123.00"
}
or
{
"price": {
"currency": "gbp",
"amount": 12300,
}
}
{
"price": {
"currency": "gbp",
"amount": 12300,
}
}
I know the latter is possible with statePath now but would like to know if option one is also possible (and recommend). Maybe using the hydrate... methods?
18 replies
FFilament
Created by Thandruil on 5/30/2023 in #❓┊help
Expose group of fields as a new single reusable field
Makes sense! And what about
Is there a way of exposing a single named property to the form state?
18 replies