Filament

F

Filament

A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire

Join

Query string table filters do not work with custom pages and HasTable.

I'm trying to build a custom page to display a list of data using a HasTable. I also tried to add a filter, but then I realized that it doesn’t include a query string when I apply any filter — unlike the table from a resource.

[BUG] Dutch valid phone number fails in TextInput `->tel()` regex

Hi Filament Team, This phone number: +31(0)6-57999009 is generated by faker and is a valid phone number format in The Netherlands. But my test fails sometimes because the regex does not accept this format....

Disable observeTenancyModelCreation

Hey everyone 👋 Quick question — is there a way to disable Resource::observeTenancyModelCreation()? I tried setting $isScopedToTenant = false, but that didn’t seem to do anything. ...

Call action on page load, but with action button hidden

Hi, i have $defaultAction property set on custom page. It is working ok. Default action is triggered on pageLoad. But I would like to hide action button. If I set visible(false) action is not triggered. What is the purpose:...
Solution:
ok, fixed it. extraAttributes and display:none;

Modify global search query

I would like to tweak the generated SQL query for global search. In the below example, I'm querying the user_id, firstname, lastname and email fields. I would like to do things like: 1. Not bother searching firstname, lastname or email fields if the search term is numeric....
Solution:
You can overwrite the public static function getGlobalSearchResults(string $search): Collection to have complete control over the results.

Redirect to Dashboard

I have 3 panels - student, faculty & admin. I have configured them correctly so that student users can access only student panel, faculty users can only faculty panel and admin users can access only admin panel. Currently if the student users try to access the faculty panel or admin panel, they get 403 (Forbidden Page). But I want them to be redirected to their own dashboard with a warning. How can I achieve this? Thanks in advance.

hidden and hiddenOn issue on TextColumn field.

Previously on filament v3 I am able to use both hiddenOn and hidden but found it doesnot work on v4. How can i hide this column for both tenant and class?
No description

Can I use polling in Infolist?

sometimes there are some tasks I need to push into queue for processing, data will come out later

Panel with ->domains option

I'm trying to make my Panel work for two specific domains using the ->domains() option. With php artisan optimize I get The current domain is not set, but multiple domains are registered for the panel. Please use [Filament::currentDomain('example.com')] to set the current domain to ensure that panel URLs are generated correctly. I've tried defining Filament::currentDomain('example.com') in various places but it didn't work out. Can someone help me out?...
Solution:
Okay I think I found a workaround with: ```php class GlobalPanelProvider extends PanelProvider {...

How to render a Forms Builder component on front ?

Hi, perhaps my understanding of this is wrong. The output saved from a Builder component (filament v3) is an array or json. Having read https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component I can output the same builder on front as I had in Filament, but what i'm looking for would be something like ->toHtml() or idk.. Did I misunderstand the purpose of the Builder Component ? I assumed it can be used as a sort of Page builder too and not just a Forms Builder?...

Filament shield

Why filament shield translations not working
No description

DateRangePicker with singleCalendar()

I used mountUsing to set the default value of the DateRangePicker (malzariey/filament-daterangepicker-filter) to today. The initial value displays correctly, but when I change the date, the component still keeps today as the active value. Has anyone run into this before or found a way to fix it?
No description

Styles don't work correctly after updating the project from 3 filaments to 4

Hi, I followed the guide on your site when updating my app from version 3 to 4 and encountered the following problem: most of the styles and markup aren't working correctly. I tried editing the styles directly from my templates, but it didn't help, and the styles remain broken. Maybe you can suggest any things I should pay attention to after the update that directly affect the styles. Also, could you tell me if my current path in my app.css is correct, as the GPT chat suggests replacing it with @import '../../vendor/filament/support/resources/css/index.css'; Also, the current path @import '../../vendor/filament/filament/resources/css/theme.css'; causes an error when updating tailwind via npx @tailwindcss/upgrade related to this line: @variant dark (&:where(.dark, .dark *)); My app.css
@import '../../vendor/filament/filament/resources/css/theme.css'; @import 'tailwindcss';...

Related records in list page

Relationship Managers make seeing all the related records easy enough on a view page. However, take an example of a parent resource like Companies, and related resources like Contacts, Notes, Communications...it would be nice to be able to see the parent list page, and then the related resources in tabbed list tables underneath, that changed depending on which Company row was 'selected'. That would feel a little more like a traditional desktop application....

Modify Upload File Interface?

I'm creating an app that allows importing up to 100 CSV files at once. When using the default file upload, it looks really messy, the progress bars stack vertically or horizontally and stretch too far. Is there a way to customize it? Could someone give me a few pointers? Thanks!...
Solution:
Form schema add an extra class to the field ```...

Icon Button in a blade with size="xl" results in "lg" class applied

Title mostly explains it. ```html <x-filament::icon-button size="xl"...

TODO / Checklist App

Hi, I want to create a TODO / checklist app. Users should be able to create checklists and add items to these checklists. The items can then be checked off one by one to mark them as completed. What kind of components or elements would be suitable for this? I’ve tried using a repeater, but it doesn’t look very user-friendly.

afterStateHydrated -undefined Method

I just want to make my web have a Map Picker Feature. Im using afterStateHydrated to get my latitude n longitude. But, the 'afterStateHydrated' method is undefined, btw I follow a tutorial and no error in that tutorial, and idk why my app is still work with that error still there. Anyway, I dont have muck experience in laravel and PHP. ...
Solution:
Okey this is just an IDE error? If your app works than it's not a problem. Maybe adding https://github.com/barryvdh/laravel-ide-helper can help with this kind of "errors".

Route [login] not defined. How to fix?

I have my Filament 4 app pointing to the root DIR. When ever something tries to redirect to login I get that error. And apparently when I try to use the filament login as a route I get an error saying 'filament.app.auth.login' doe not exist. ...