vahnmarty
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
How to easily change the placeholder text on Search?
I want every resource will have different search placeholder, for example in Child Resource, the placeholder should be "Search First Name, Email or Phone Number". In Application Resource "Search Control Number, Status, Name".
10 replies