Filament

F

Filament

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

Join

Mobile App View

When I wrapped my Filament app using Capacitor, the top UI elements (like the menu and login) are overlapping with the iOS status bar. How can I adjust the UI so that it starts below the status bar, like other native apps in mobile view?
No description

Translatable language switcher reactive status

On a field I like to have the actual language set via language switcher, something like: ``` Forms\Components\TextInput::make('sharing_link') ->hiddenLabel() ->live()...

Get the titles of fields in indicators for filter with form (schema)

I have this code ``` Tables\Filters\Filter::make('state_district') ->form([ Forms\Components\Select::make('state_id')...

$record in action closure in Infolist RepeatableEntry references parent model

```RepeatableEntry::make('bidders') ->schema([ TextEntry::make('document.id') ->suffixActions([ Action::make('detach')...

TestAction nested field access

I have a test case that tests the createOption action of the select field. I basically have this structure: tabs > tab > section > repeater > select ...

How do I get the current active theme in filament from custom view page?

Is there a way to get the current active theme color? because I have a table and this table is currently following the dark theme so if the Theme is changed to while my table is still black...

$get function for select options

`Toggle::make('unavailable_since') ->reactive() ->dehydrated(false) ->afterStateUpdated(function ($state, $set, $record) { $optionIndex = [...

In relationshipManager, the relationship is not automatically set to ownerRecord

In these screenshot, you can see I'm in the Provider model, in the OpenAI Provider. When I click the "Create" in the Relationship Manager to create a new Model, the Provider is not automatically set to "Open AI"....
No description

Can I make a TextColumn relationship linkable like in Laravel Nova ?

Here is an exemple with the Category column in Nova, I'd like to replicate the same effect in Filamentphp
No description

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)...