pocket.racer
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
But i want it to save as this kind of json instead
How should I do it? for both saving and correct retrieval. Thank you
3 replies
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
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
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
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
2 replies
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
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
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
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
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
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)
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