Filament

F

Filament

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

Join

Share the same $form and $table between Resource, RelationshipManager, createOptionForm

Hi, I'm new to filamentphp, and mostly a Front-end developer. I've had to add some things in an existing project, and haven't had too much problems, but I feel like I keep repeating the same forms and fields over and over... Is there a way to define the fields once, and reuse them between the Resource, RelationshipManager and createOptionForm ? And what is the best practices around that ?...

Undefined variable $errors while editing richeditor field content

Hello I have issue whenever I'm editing resource with richeditor powered field which is responsible for rendering in the page content. I get this error
No description

Filament v3 database notification not coming with redis session driver and queue_connection=sync

Hi guys, when i change the queue_connection to sync, i cannot get database notification after import and export, but then i changed the queue_connection to database or redis then notifcation came for import and export, i check the normal database notification and it works, this is only happending for import and export action, is this the intended behviour?...

Redirecting admin to default one prefixed routes after creating record

Hello I have issue, when I'm being as an admin create record it redirects me to default panel supposed for users. Docs doesn't help me only stuck in the create page, despite manually defined default filament behavior to redirect to recently created record edit page. Admin panel. Maybe I should edit panel to handle that there's code ```class AdminPanelProvider extends PanelProvider { public function panel(Panel $panel): Panel {...

Isolation of table rows on a overloaded server

I encountered a problem when deploying the application to a server with high load. The application runs smoothly and without problems on localhost. However, when deployed to a server with high load, it is very slow, and apart from the speed, there are other issues as well. When I click on the edit action of a row in the table, the edit action often opens empty or contains a record from the adjacent row. It is also annoying that when I click on the action on multiple rows, the previous ones are not canceled, but it tries to run all of them and ultimately opens the first one anyway. Is there any way to solve this lack of isolation of individual table rows?...

Optimize relationship selection for UX

Right now i have this repeater field which takes care of adding a pivot data to a specific model which i created by following the documentation, however i'm getting feedback from the operators that the procedure of adding each related model is sluggish and they would like to mass select the promos and then be allowed to move them around for ordering. I tried a couple of things such as turning the pivot model into an actual Pivot and not a Model but i'm drawing a blank on how to implement this request smoothly in a component....
Solution:
update: manage to make it work by overriding the repeater add button and the submit action. It's not the prettiest thing but it works

Hello may I know how to re-order the action button in a modal?

Currently its Cancel -> Reject -> Confirm I want it to be Confirm -> Reject -> Cancel please do refer to the image. Thank you in advance!...
Solution:
nvm, found the solution ```php ->modalFooterActions(function (Action $action) { return [...
No description

Prevent users from accessing app via browser

I’ve got an Electron app that’s essentially a web app under the hood, and I want to make sure users can only access it through the app itself, not by opening it in a browser. Right now, I’m trying to enforce this on the frontend, but some users are bypassing it and accessing the app through their browsers, which I want to prevent. Could you help me figure out how to stop this from happening and make them to go via the electron app? Let me know other servers where I may ask this question rather than in here with the non filament tag (:...

Can't delete image using Webplusm-json-media

Hey guys, i try the plugin in Filament 4 and look really cool, buy need help with 2 problem please: Problem 1: When i create or edit a record i have the icon for add files really big, how can chan the size? problem 2: ...
No description

Infolist tabs query parameter updating live on changing tabs

Currenlty the infolist tabs are not fetched before page refresh by the server. When tried to get the tab query parameter for the activeTab using request()->getQueryString() the changed tab is not updated on the server side....

What can you do to speed up resource

I am searching for a solution. When editing a resource (just some text fields, checkboxes and a builder) it feels way slower to change fields then it feels like to be. Sometime the 'update' call in the network tab can take longer than 16 seconds. How to make filament feel more snappy? (No debugbar and other first google hits are present)...

Color For multiple badge

This data is displayed multiple, and for that reason this data is safe and appears, it only takes 1 hex_color_code so all of them only use the same 1 color, even though I want each data to appear with the appropriate color code i have this code ```TextEntry::make('labels.name') ->label('Labels')...

I can't reach out form multi select data in filament v3

Hello while I'm using Livewire and Filament v3 wizard form on the top of it. I 'm using multi select but I have issue I can't access multi select data properties. When I'm dumping they aren't at all.

Translation Platform

Are there any good open source translation platforms to translate strings into different languages and get the translations via e.g. rest api? (the best would be Services or plugins, based on filament)...

Tenant middleware doesn't apply on widgets

When I use the following in my panel provider, it applies perfectly well to all routes apart from when loading widgets. ```php ->tenantMiddleware([ 'tenanted', ], isPersistent: true)...

Subnavigation in Resource --simple

Hi, is it possible to display subnavigation on top of Resource simple page "ManageRecords" page type. Also is it possible to display breadcrumbs in it? Thanks in advance....

Setting a relationship back to null

I have a v4 beta10 installation, of Filament, where I use a simple page model/resource. This model has a self referenced parent_id field. In my edit form, I use a select field with a relationship. There I show all pages (except of the currently edited one). I can successfully add and change parent pages. What is not working is removing a parent page. Then I got this error:
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db`.`pages`, CONSTRAINT `pages_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `pages` (`id`))
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`db`.`pages`, CONSTRAINT `pages_parent_id_foreign` FOREIGN KEY (`parent_id`) REFERENCES `pages` (`id`))
...
Solution:
Don’t you want to nullOnDelete() instead of cascadeOnDelete() here? See https://laravel.com/docs/12.x/migrations#foreign-key-constraints

Notification Action - V4

I have a notification in my custom action class as a guide from this document. I encounter an error Unable to call component method. Public method [mountAction] not found on component not sure if this is known issue in v4 beta-10. here is my code snippet:...
Solution:
only URLs and dispatches, not function calls

Intended usage of `::configure()` in v4

Often in a resource, I'll want to embed a form schema in a Section component. If I define my form as its own schema using php artisan make:filament-schema, how can I then put it in a section in the public function form(Schema $schema): Schema method in the resource without causing an infinite loop, given the configure call modifies the very object it is embedding itself in?