Filament

F

Filament

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

Join

Dynamic Form fields (Something like Google Forms) -> is it possible/practical?

A customer needs their users to fill-up some forms for the information to go a simple table. I'm wondering about developing this using Filament, but like the approach of Google Forms/Microsoft Forts, I would like to offer the customer some control over the form fields so they can decide which questions to ask (the user can pick some questions for other users to answer). I can't quite see yet how filament would allow the user, from the front end, to edit/create forms and the forms-fields. Maybe there is a way using the Builder Field, has anyone ever tried to solve this problem do you know a good approach even if is not using Filament? Maybe this is a good idea for a Filament plugin?...

API GraphQL on Filamentphp

Hi guys . May i know does Filament support Api GraphQL ? Because my project need to use it . Or need to use Rest Api ? Need advice from expert ....

Render component inside relation manager

Hi everyone, I'm trying to render a Livewire component inside a Filament RelationManager page using a custom trait with a render hook. Here's the method I'm using: ```protected function registerFooterComponent(string $componentClass, array $props = []): void...

ManyToMany Relationship Attach Action on Custom Table

``` public function table(Table $table): Table { $merchant = MerchantResolver::resolveMerchant(); ...
Solution:
Fixed it with this ``` public function table(Table $table): Table { $merchant = MerchantResolver::resolveMerchant();...

Table Grid Layout and ViewColumn

In other words, VIewColumn is good way to set custom view for a record. But why we can't use custom view for a record, if we want to use Grid for table? Why not?

How to set values on Fields initially?

I have lots of input fields but I do not know how to set the values and display it to the page on load.

Actions issue after update

After updating my filament packages to latest version 3.3.21 i'm facing a weird issue. clicking on button (actions) causes all menus/modals to open as shown in the picture, even the table group action menu is showing, when i click on add constraint filter button (or basically any other action like refresh table)...
No description

Why Not Custom Field That Extend Filament Field In Code Quality Tips

In v4.0.0-beta in code quality tips https://filamentphp.com/docs/4.x/resources/code-quality-tips#using-component-classes it suggest that we make a class that return the filament field or column then use that class but I think that there is better tip is to suggest that we use OOP stuff which is "inheritance" like this code ``` class MonyTextInput extends TextInput {...

Issue with QueryBuilder Table Filter

I'm facing a weird issue, probably on my end, because i'm not using filament panel, but using tables, forms and actions separately. What i'm facing is the following, when i use the Querybuilder filter to filter my table, then i press on edit button for any row (while the filter is applied), the modal opens normal, but when i submit it causes the server to timeout. the create modal action works normally even when the filter is applied, so the issue is with the modal edit action only. i tried using browser network panel to debug, but it's leading me nowhere, any idea that might help fix it?...

How can I create/add a helpertext to an entry or input that opens an information modal when clicked?

Hey all I have an infolist and i want to add a preview of some sort. I thought about adding this through clicking on a specific word in the helpertext, which should result in opening a popup. Kinda like a lot of applications/web-apps have their terms and conditions on display (see the image). I would appreciate any suggestions. Thanks in advance....
No description

give rendered elements a cypress attribute?

I would like to use Cypress tests in my app, and the recommended way of targeting DOM elements is by adding html attributes to the element. <input data-cy="name_of_field" etc /> How do you do this? And is there a way to have it apply to all forms and tables and buttons, or would i need to define that for each?...

Refresh navigation upon saving

I have a settings page with some checkboxes, and based upon those values, we check them in our resources shouldRegisterNavigation() to hide the nav menu. it works, but you don't see the change in nav until a refresh, how can i tell filament to either refresh the nav or the entire page?

How to show notifications in Filament Admin Panel only (multi-panel setup) triggered by API endpoint

I'm using Laravel with Filament v3, and my app has multiple Filament panels such as Admin, Courier, etc. I want to trigger a notification in the Admin Panel only whenever the mobile app makes a POST request to the /api/orders endpoint to create a new order. I’ve tried calling Notification::make() directly in the API controller, but it doesn’t display anything on the Admin dashboard. I’m guessing it’s because API requests don’t interact with the Filament UI directly. Is there a proper way to trigger real-time notifications in the Filament Admin panel (but not in other panels) when an external event like an API call occurs...

Selecting default rows on component render

Is there any solution to select default values for bulk action checkboxes?

Filament Perfomance

Hi guys , i got a project that requires minimum 300 users to access . Just wondering does filament can cater all this request a ? Because i havent try it yet . Usually 20-30 users per project . Just wanna know experience from any of you to share here ....

Order By for Global Search Results

So I have a couple of models with GlobalS earch on, I see that the newest models are returned last in the search, any way to modify the sort / order by of the global search results ? I have seen discussions about sorting the actual sets / models in global search, I am asking about sorting within a model, lets say i want to sort by a specific column ? currently on v3, Laravel 12...

Please help, Record not resolved in visible() method of a SelectColumn

I’m trying to conditionally show a column based on the current record like this: ```php SelectColumn::make('car_color') ->label('Colors') ->options(CarColors::class)...

I want to use filament as a personal dashboard. Any recommendations on how to go about it?

Hi, I'm new to filamentphp but find it amazing. I was wondering if I can use it to make not a general dashboard but rather a personal one, meaning not to have to choose a user when creating a resource etc as it should be the logged in one. Let's go with the classic to-do example. I want to be able to add tasks for ME as the logged in user. And if a friend create an account they will add to their account, etc etc. How to go about it? Any tips or recommendations of documentations, tutorials, etc?

[Filament v3] Resource not showing in sidebar

Hi everyone, I need help with my Filament v3 panel setup. I created a resource using:
php artisan make:filament-resource Mahasiswa ...
Solution:
Can you check the model policy. It should return true for viewAny method