wazkaz
TextColumn searchable function anomaly.
Hello, I am using the
TextColumn
's ->searchable()
function, and I've modified the query. When I test the search and enter the search parameter, the table is empty, even though it should return records. I tested the MySQL query directly, and it works, returning the correct records. I also used dd()
on the query with ->get()
at the end, and it returned the correct results. The column value is also a custom value. What could be the issue? Can anyone help me?
2 replies
Blade components modifications problem
I am using the
badge component
, and I would like to remove the border. I checked the component and found that the ring-1
class from Tailwind
is responsible for the border. I tried adding class="ring-0"
outside the component, but it still doesn't overwrite the default class. Am I missing something, or why isn't it overriding the default class?
This is how I am using the component:
I checked the browser's inspection tool, and both classes are defined on the tag.2 replies
Badge component color using hex
Hello, I am using the
Badge Filament Blade component
, and I would like to change its color by passing a hex code, but it is not working.
I tried using the TextColumn
badge functionality to change the color with a hex code, and it worked like this:
Color::hex($record->attributeOptions->first()->color_code);
However, when I try to achieve the same with the Blade component, it doesn't work.
Can anyone help me with this?7 replies
Button blade component customization
I am using the button blade component and I noticed that a loading indicator appearing after click on the button. Is there a way to remove that loading indicator by passing example an attribute, or any other ways?
5 replies
New panel custom file structure discovery problem
I created a new panel and set up a custom folder structure for the panel to discover the files. I used a wildcard because some folders have different names. The problem is that if the Resources, Pages, or Widgets folders are missing, it throws an error. Additionally, I generated a new resource, placed everything in the correct folders, but it still throws an error saying that it cannot find the file, even though the file exists. Has anyone faced this issue before?
I am using the discovery function like this:
2 replies
Unique validation on edit throws error
I have a form field which have unique validation. When I am trying to update the record it throws the unique validation error. The documentation mentioned to add the
->unique(ignoreRecord: true)
but didn't helped. Anyone face this issue before? I also tried this ->unique(ignorable: fn ($record) => $record)
but same result.18 replies
Table widget heading change
Hello, i want to overwrite the table widget heading with a translatable string but I didn't find how i could. I tried to use like this: but it not accepting if i start with double underscore. If i use the static string it is working. Anyone faced with this before?
4 replies
Redirect parameter loss
Hello, can anyone exprienced that when you make a redirect and pass a parameter to it, it will lose at some point. That point is when an afterStateUpdated() function is ran. I query the parameter using: request()->query('maintenance'). The parameter in the url is there but the request()->query('maintenance') returning null.
5 replies
DateTimePicker time selection jumping back to 0
Hello, yesterday i was worked with the DateTimePicker and i tried to use the minDate/maxDate on the non-native component, but after I added that function I observed that when I trying to change the time it always jump back to 0 and if i remove that function the time picker works correctly. Is this some kind of bug or the minDate/maxDate not working with the non-native DateTimePicker?
14 replies
Loading indicator in the modal
Hello, I want to display a loading indicator in the modal, somehow. I trying to use the render hooks. Can anyone help me about it, which are there any premade render hooks for the modals? So in the form I have a select component and after I select a value it goes to fetch an API. I added the fetching logic in the afterStateUpdated() function, but the problem is there is no any indicator for the user about the fetching. The best would be if the select component show the loading indicator but for that we should update the select component itself.
6 replies
Relation manager display
Hey everyone,
I hope you're doing well! I'm currently working with Filament PHP and running into a bit of a challenge with the relation manager. It has two layout options, but by default, it only renders one at a time.
I'm looking for some advice or ideas on how I can make it render both layouts simultaneously. Any tips or experiences you could share would be super helpful!
Thanks in advance! 🙏
14 replies