36864
36864
FFilament
Created by 36864 on 3/21/2025 in #❓┊help
Error trying to download export as .xlsx
Bumping this because I still can't figure it out. Everything works fine on dev, but on prod the ob_end_clean() triggers an error. I monkey-patched the XlsxDownloader class to just comment out ob_end_clean() and this seem to be working fine for now, but that's obviously not a solution I'm confortable with long-term.
8 replies
FFilament
Created by 36864 on 3/21/2025 in #❓┊help
Error trying to download export as .xlsx
Gotta run into a meeting right now so might be slow to answer for the next couple hours or so
8 replies
FFilament
Created by 36864 on 3/21/2025 in #❓┊help
Error trying to download export as .xlsx
Yeah that didn't work. Stopped all my workers, hit the export button, ran queue:work, it generated the export files just fine, but when I try to download as .xslx it errors out. Downloading as .csv works fine.
8 replies
FFilament
Created by 36864 on 3/21/2025 in #❓┊help
Error trying to download export as .xlsx
Also, the error is triggered when I click the download button in the notification so the actual export seems to run fine
8 replies
FFilament
Created by 36864 on 3/21/2025 in #❓┊help
Error trying to download export as .xlsx
I'll try stopping my workers and see if I can manually run the queue worker just once to be sure
8 replies
FFilament
Created by 36864 on 3/21/2025 in #❓┊help
Error trying to download export as .xlsx
I have multiple queue workers, but they each operate on just one queue at a time
8 replies
FFilament
Created by 36864 on 1/6/2025 in #❓┊help
Livewire encountered corrupt data when trying to hydrate a component.
I've finally managed to reproduce locally. It appears to only happen when the client's balance is equal to 0. Apparently it doesn't like to parse negative 0. Working around that fixes the issue. Thanks for looking into this!
7 replies
FFilament
Created by 36864 on 1/6/2025 in #❓┊help
Livewire encountered corrupt data when trying to hydrate a component.
No, and definitely no middleware that would only execute on accessing specific resources
7 replies
FFilament
Created by 36864 on 1/6/2025 in #❓┊help
Livewire encountered corrupt data when trying to hydrate a component.
This apparently only happens when trying to submit the form on specific resources, not all of them.
7 replies
FFilament
Created by 36864 on 1/6/2025 in #❓┊help
Livewire encountered corrupt data when trying to hydrate a component.
Form:
->form([
TextInput::make('mobile_number')
->label(__('Mobile Number'))
->formatStateUsing(fn($state) => $state ? $state : $infolist->getRecord()->client->mobile)
->required(),
TextInput::make('amount')
->label(__('Amount'))
->numeric()
->minValue(1)
->formatStateUsing(fn($state) => $state ? $state : -$infolist->getRecord()->client->balance)
->required(),
TextInput::make('message')
->label(__('Message')),
->form([
TextInput::make('mobile_number')
->label(__('Mobile Number'))
->formatStateUsing(fn($state) => $state ? $state : $infolist->getRecord()->client->mobile)
->required(),
TextInput::make('amount')
->label(__('Amount'))
->numeric()
->minValue(1)
->formatStateUsing(fn($state) => $state ? $state : -$infolist->getRecord()->client->balance)
->required(),
TextInput::make('message')
->label(__('Message')),
7 replies
FFilament
Created by joao nivaldo on 8/21/2023 in #❓┊help
Install in Laravel 9 the Form and Table Builder
Why are you requiring 2.0 specifically instead of ^2.0?
13 replies
FFilament
Created by 36864 on 8/11/2023 in #❓┊help
How to access selected toggleable columns
That's not available in the Resource class's getTable() method. I found the session variable that holds the information and now I'm just accessing that. Thanks.
4 replies
FFilament
Created by 36864 on 6/21/2023 in #❓┊help
Keeping labels when using a Split in a table
This adds a description under each row's value for that column, which will have to suffice for this case. Thanks.
4 replies
FFilament
Created by John Parker on 4/6/2023 in #❓┊help
Recommended approach for replacing Filament login with Jetstream?
In your filament.php config file, set auth.pages.login to null and make sure your guard is the same as you're using for jetstream
24 replies
FFilament
Created by 36864 on 3/15/2023 in #❓┊help
Duplicate queries using bulk action
There are still duplicate queries for just fetching the selected entries though.
select * from `account_entries` where `account_entries`.`id` in ('218059', '218058', '218055') and `account_entries`.`deleted_at` is null order by `entry_date` desc
select * from `account_entries` where `account_entries`.`id` in ('218059', '218058', '218055') and `account_entries`.`deleted_at` is null order by `entry_date` desc
This one query is repeated 5 times when opening the bulk action form. Culprit seems to be Conerns/CanSelectRecords. Is there any way this can be cached for the request?
5 replies
FFilament
Created by 36864 on 3/15/2023 in #❓┊help
Duplicate queries using bulk action
Sorry for late reply, had to switch to another project for a while. Wrapping the options paramter in fn() => did the trick. I'll remember to do that in the future.
5 replies
FFilament
Created by 36864 on 3/15/2023 in #❓┊help
Accessing current selection in bulk action form
I figured out you can get the records injected into the callback as such
BulkAction::make('changeProcess')
->form(
function (Collection $records) {
//do things with my records
})
BulkAction::make('changeProcess')
->form(
function (Collection $records) {
//do things with my records
})
Thanks!
3 replies