wazkaz
wazkaz
FFilament
Created by wazkaz on 10/21/2024 in #❓┊help
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?
<?php
<x-filament::button wire:click="openNewUserModal">
New user
</x-filament::button>
<?php
<x-filament::button wire:click="openNewUserModal">
New user
</x-filament::button>
5 replies
FFilament
Created by wazkaz on 9/25/2024 in #❓┊help
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:
->discoverResources(
in: app_path('Domain/*/Filament/Resources'),
for: 'App\\Domain\\*\\Filament\\Resources'
)
->discoverPages(
in: app_path('Domain/*/Filament/Resources/*/Pages'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Pages'
)
->discoverWidgets(
in: app_path('Domain/*/Filament/Resources/*/Widgets'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Widgets'
)
->discoverResources(
in: app_path('Domain/*/Filament/Resources'),
for: 'App\\Domain\\*\\Filament\\Resources'
)
->discoverPages(
in: app_path('Domain/*/Filament/Resources/*/Pages'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Pages'
)
->discoverWidgets(
in: app_path('Domain/*/Filament/Resources/*/Widgets'),
for: 'App\\Domain\\*\\Filament\\Resources\\*\\Widgets'
)
2 replies
FFilament
Created by wazkaz on 8/30/2024 in #❓┊help
Disable deletion for database notifications
No description
2 replies
FFilament
Created by wazkaz on 8/28/2024 in #❓┊help
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
FFilament
Created by wazkaz on 8/19/2024 in #❓┊help
Set displayed timezone globally
It is possible to set the timezone globally for the displayed datetimes?
7 replies
FFilament
Created by wazkaz on 8/16/2024 in #❓┊help
Global setting for TextColumn partially working
Hello, I trying to use the global setting for TextColumn but only partially working. It is working on a resource page, but in a relation manager not working. This is the code what I am using:
TextColumn::configureUsing(function (TextColumn $textColumn): void {
$textColumn->timezone('Europe/Bucharest');
});
TextColumn::configureUsing(function (TextColumn $textColumn): void {
$textColumn->timezone('Europe/Bucharest');
});
9 replies
FFilament
Created by wazkaz on 8/14/2024 in #❓┊help
Native DateTimePicker
I would like to format the native date time picker displayed value. But the same formatter as on the non native date time picker not working. Can anyone faced this before?
2 replies
FFilament
Created by wazkaz on 7/11/2024 in #❓┊help
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:
protected static ?string $heading = __('Parts Surveyed Products');
protected static ?string $heading = __('Parts Surveyed Products');
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
FFilament
Created by wazkaz on 7/10/2024 in #❓┊help
Table widget width
I made a table widget and i added under a form but the table widget is half of what should have, how i could increase the width of the table widget? didn't found any help in the documentation
4 replies
FFilament
Created by wazkaz on 7/8/2024 in #❓┊help
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
FFilament
Created by wazkaz on 7/5/2024 in #❓┊help
Select column width
No description
5 replies
FFilament
Created by wazkaz on 7/2/2024 in #❓┊help
Custom table in the resource page
I wondered it is possible easily to render a custom table with custom query under the resource page relation manager or between the form and relation manager?
6 replies
FFilament
Created by wazkaz on 6/19/2024 in #❓┊help
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
FFilament
Created by wazkaz on 5/24/2024 in #❓┊help
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
FFilament
Created by wazkaz on 5/2/2024 in #❓┊help
Table group dropdown not shown
No description
5 replies
FFilament
Created by wazkaz on 3/28/2024 in #❓┊help
On edit resource Unsaved changes alerts.
I added ->unsavedChangesAlerts(); to the provider, I tested it and on new record saving it working perfectly but when I do the same on edit it won't.
3 replies
FFilament
Created by wazkaz on 12/6/2023 in #❓┊help
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
FFilament
Created by wazkaz on 11/10/2023 in #❓┊help
HasManyThrough realationship in Select
Hello, I would like to use a hasManyThrough relationship in a the Select field, it throws a not compatible error. Is there some workaround for this?
3 replies