pocket.racer
pocket.racer
FFilament
Created by pocket.racer on 9/17/2024 in #❓┊help
How to change the resulting json for Checkbox List?
Currently I'm trying to use the checkbox list field https://filamentphp.com/docs/3.x/forms/fields/checkbox-list However it save the resulting json as something like this, notice item-2 is not inside the array as it is not checked
[
"item-1",
"item-3",
]
[
"item-1",
"item-3",
]
But i want it to save as this kind of json instead
{
"item-1": true,
"item-2": false,
"item-3": true,
}
{
"item-1": true,
"item-2": false,
"item-3": true,
}
How should I do it? for both saving and correct retrieval. Thank you
3 replies
FFilament
Created by pocket.racer on 9/12/2024 in #❓┊help
Is there a way to select all/unselect all columns in filament export like how we can for table rows?
talking about the export feature in core, not the filament excel 3rd party package
2 replies
FFilament
Created by pocket.racer on 9/11/2024 in #❓┊help
Infinite redirect when i set panel path to '', only happen locally but not on staging/production
Not sure how to resolve this. it only happen locally but in my staging and production server it works fine.
3 replies
FFilament
Created by pocket.racer on 9/7/2024 in #❓┊help
How do i make default page register instead of login?
when i go to my domain.com it always redirect to /login How do i make it go to /register? Currently i have to go to routes/web.php and add Route::redirect('/', 'register') but i wonder if there is a better way I can specify in Filament generated AdminPanelProvider instead
3 replies
FFilament
Created by pocket.racer on 9/6/2024 in #❓┊help
How to hide placeholder of file upload field?
No description
12 replies
FFilament
Created by pocket.racer on 9/3/2024 in #❓┊help
How to run javascript code on filament panel logout?
An analytics SaaS i use ask me to run some javascript code on every logout, how do i hook into filament panel logout to run that javascript code?
2 replies
FFilament
Created by pocket.racer on 8/29/2024 in #❓┊help
How to do a ranking column in filament table that doesn't change?
So i want to build a ranking table with filament, where by the left most column will be called 'rank' it should go from 1 to (number of records) Then as i press the sort indicator on the other columns, it get sorted, but ranking number on the left side don't change Any idea how could I do it? So example: Rank | name | Push Ups | Sit Ups | Squats 1, Dan, 8, 6, 4 2, Harry, 7, 7, 5 So if i sort by push ups, Dan will be 1st, Harry will be 2nd if i sort by sit ups, Harry will be 1st, Dan will be 2nd Hope i am not too confusing. Thank you
6 replies
FFilament
Created by pocket.racer on 7/21/2024 in #❓┊help
Is it possible to use filament table in filament form now?
I saw this merged PR, but I could not find any information in the documentation on how to use it yet https://github.com/filamentphp/filament/pull/13101
4 replies
FFilament
Created by pocket.racer on 6/20/2024 in #❓┊help
Code in resources/bootstrap.js not running
So i have the following code in my resources/bootstrap.js but my sentry user feedback widget didn't show up on Filament pages, but it shows up on non filament pages. If anyone know what i missed out on let me know
import * as Sentry from "@sentry/browser";

Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN_PUBLIC,
integrations: [
Sentry.feedbackIntegration({
colorScheme: 'system',
showBranding: false,
}),
Sentry.replayIntegration(),
],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
tracePropagationTargets: [
'my-site.com',
],
});
import * as Sentry from "@sentry/browser";

Sentry.init({
dsn: import.meta.env.VITE_SENTRY_DSN_PUBLIC,
integrations: [
Sentry.feedbackIntegration({
colorScheme: 'system',
showBranding: false,
}),
Sentry.replayIntegration(),
],
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
tracePropagationTargets: [
'my-site.com',
],
});
2 replies
FFilament
Created by pocket.racer on 6/12/2024 in #❓┊help
How to resolve php artisan filament:cache-components error?
I added this command to my production deployment script as recommended. But I keep get this error during deployment crc32(): Passing null to parameter #1 ($string) of type string is deprecated in /home/forge/my-site.com/releases/20240612042953/vendor/livewire/livewire/src/Features/SupportScriptsAndAssets/SupportScriptsAndAssets.php on line 31 When I check that class in livewire package. it is this line
$viewPath = crc32(app('blade.compiler')->getPath());
$viewPath = crc32(app('blade.compiler')->getPath());
It seem that calling ->getPath() on app('blade.compiler') always return null What can I do so that app('blade.compiler')->getPath() will return a string?
2 replies
FFilament
Created by pocket.racer on 2/28/2024 in #❓┊help
How to stop the navigation sidebar from appearing right after login on mobile?
No description
17 replies
FFilament
Created by pocket.racer on 1/24/2024 in #❓┊help
How to add render hook to modal & slideover?
Hi, I am trying to add something to modal & slideover render hook in filament tables & table widget. But when I look at the documentation I don't know which is the right one https://filamentphp.com/docs/3.x/support/render-hooks Hope someone could help. Thank you
2 replies
FFilament
Created by pocket.racer on 1/17/2024 in #❓┊help
Custom page form showing as $this->form
No description
16 replies
FFilament
Created by pocket.racer on 1/17/2024 in #❓┊help
How to get unsaved changes alerts to work for custom pages?
it work for my resource pages but doesn't work for my custom page form
3 replies
FFilament
Created by pocket.racer on 12/19/2023 in #❓┊help
Viewing table record details in a table modal show another record details? (Security)
Have this really weird bug that happen only in production My filament v3 table has many rows and for a particular user, when he press the 'View Details' action on the table row, it shows another record details (sometimes) This seem to only happen for that particular user and we have been unable to reproduce it anywhere & that is worryingly as it's a potential security risk (or maybe not since it's still a record the person is allowed to see i think, just that the it's a different record displayed). Hence wanted to ask if anybody else faced a similar issue too and if u all manage to find out what might be the reasons Part of us wonder if it is a diffing bug or something else
4 replies
FFilament
Created by pocket.racer on 11/29/2023 in #❓┊help
DateTimePicker fields ->seconds(false) no longer working after update to 3.0.103 & 3.1
But it work in 3.0.102 (downgraded and confirmed it) Looking at the release notes, I can't tell which PR is it that broke it. Since none of the PRs mention about Dates https://github.com/filamentphp/filament/releases The in 3.0.103 DateTimePicker field still show but when submit will get a browser validation error like this
13 replies
FFilament
Created by pocket.racer on 11/10/2023 in #❓┊help
how to display sort selections with Table ViewColumn?
No description
13 replies
FFilament
Created by pocket.racer on 10/2/2023 in #❓┊help
how to center infolist entry?
My image keep appear at the left instead of at the center my code which you can see I used ->alignCenter() but it doesn't work (alignCenter() wasn't mentioned in the docs, but the docs didn't mention how to center infolist entries either)
ImageEntry::make('page_logo_image')
->label('')
->columnSpanFull()
->alignCenter()
->defaultImageUrl(url('/images/icons/page-1-logo.png')),
ImageEntry::make('page_logo_image')
->label('')
->columnSpanFull()
->alignCenter()
->defaultImageUrl(url('/images/icons/page-1-logo.png')),
I plan to have a few other text entries centered too. and some of the left. I have also tried to remove ->columnSpanFull() but it didn't work, the image still appear at the left
5 replies
FFilament
Created by pocket.racer on 9/28/2023 in #❓┊help
How to remove 2nd y axis in charts?
No description
2 replies