vahnmarty
Reactivity doesn't work on the frontend when using CheckboxList
I have this checkbox list that has 4 options, and the last one says "None of the above". Here's the logic of the checkboxlist, if i selected 1-3 options, and then clicked the "none of the above", it should uncheck the options and only check the "none of the above". So if the current checked is "none of the above", and I selected the other 3 options, it should automatically uncheck the "none of the above".
The code i made is already working, HOWEVER, it's only working on the backend, and not in the display. The $state (in the backend) has the correct values, but in the frontend/html-view, it's showing the wrong checkboxes.
3 replies
Is Filament v3 compatible with Laravel 12?
Just recently installed laravel app version 12, using the livewire starter kit. And I noticed
flux
has been used.
Upon installing filament table builder, i notice this
Filament uses Tailwind CSS v3 for styling. If your project uses Tailwind CSS v4, you will unfortunately need to downgrade it to v3 to use Filament. Filament v3 can't support Tailwind CSS v4 since it introduces breaking changes. Filament v4 will support Tailwind CSS v4.I tried downgrading to tailwindcss3, and some of the UI I did already broke (as flux is existing in the project) So, should I downgrade to laravel 11?
11 replies
Is there a field lifecycle for delete in FileUpload?
currently my fileupload is set to upload real time and creates a Model record using a model called "File", the
->afterStateUpdated
is working for doing it. Now my question is what the code for deleting a file?
2 replies
Filter with value having dash '-' is not properly working
I have a SelectFilter that uses a range format, e.g. Academic Year: 2025 - 2026, 2026 - 2027. When selecting a filter, the url parameter is like this
?tableFilters[academic_year_applying_for][value]=2025+–+2026
. So, it can't fetch query because of that +-+
4 replies
Input Masking not rendering in Edit Mode
Look how I click the edit button then the phone is in normal mode, but when I click it , the phone format appears
https://gyazo.com/9dbe855f09fa26c413aaeb7b96cbf368
2 replies
How to reuse a Form Field?
In using a DRY principle, I want to use Phone input that can be use in all forms. Currently, I've been copy-pasting them accross pages.
So instead of this, is there a way I can use
PhoneInput::make('primary_phone')
?4 replies
How to make TextInput to allow only numbers without using numeric()
Currently when using TextInput::numeric(), the input gonna be
type="number"
By using numeric
the minLength and maxLength no longer works. And it also allows decimal values.4 replies
Is there an easy way to transform all labels to a different format instead of ucfirst (default) ?
I'm talking about everything that Filament has, from Panels to Forms to Tables. I've been using
->label()
a lot because I prefer to have a Str::title()
.5 replies
Apply changes to field's sibling from Repeater
Using a column called
is_primary_contact
to a Parent model, I want to use $set() to apply changes to all of the parents. There can be only 1 primary contact, so If I set the parent1 to is_primary_contact
, the rest of the parents should be false
.
3 replies