Filament

F

Filament

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

Join

Table Widget not showing summary

What I am trying to do: In every resource, by default, the table is showing like Showing 1 to 10 of 37 results . Now, using table widget in Dashboard, it's not showing. What I did:...

Unexpected behaviour of Form Builder

I am trying to create a Form Builder for my project. I have created the Builder and a Block named Field which contains a Schema. ```php Forms\Components\Builder::make('schema') ->label('Form Fields')...

Repeater afterStateUpdated not returning the old state

Hi everyone, I noticed that the repeater afterStateUpdated doesn't return the old state, is it something known?

Actions with ->hidden() showing disabled and not hidden inside infolists

What is the bug? - When you add an Action to an infolist, along side some Text Entry - than you have anything like TextEntry or alone in a Grid/flex ect ->hidden() it will just disable it and not hide it ->headerActions([]) ect ...

Default Logout Bevahior

As there is no way to override default login, i couldnt implement this government socialite provider. This is really sad. Here is my code ```php public function logout(Request $request) {...

Related page with unconventional relation to parent

Hi, I'm trying to setup a related page with an unconventional relation to parent. Contact hasMany Bookmarks Bookmarks belongsTo Buyer (Contact) ...

override upload function

I want to convert and resize image beforw uploading to s3. But i have so confused where to find the documentation for override upload function. Can anyone tell me?

Resource tabs

Hi everyone, is there any way to have tabs like this in a normal resource?
No description

Save Toggleable Columns to user table

Is there a way to save toggleable columns setting to the user table. I think there is a way to save to session, but once session is removed, options are gone. It would seem that there would need to be an event that fires when the user makes changes to the toggleable columns and then at that point access a variable that should which columns are shown so that the options could be saved to the user table at that time. ...

Get a pivot column in a list?

Tables\Columns\TextColumn::make('connections.pivot.synchronized_at') ->label('Synced at') ->dateTime() ->sortable(), ...

v4 RichEditor h1,h2,... not work when rendering

v4 RichEditor h1,h2,h3 not work when rendering , it show all as one size
RichContentRenderer::make($record->body)
RichContentRenderer::make($record->body)
...
Solution:
in an info list you can do this: ```php TextEntry::make('body') ->html()...

BulkAction refresh/resetTable after queued deletion

I’ve built a custom BulkAction in Filament v4 that queues records deletions in a background job. The job dispatches fine, but I’m struggling with refreshing the table UI afterward without page reload.

Livewire component in Action modalContent? Help

Hello, im am learning FilamentPHP and for excersise i am building simple task management application. I would like to render task informations in modal. I would like to add comments option for tasks. I would like to render modal af6er adding comment....

Handling Dynamic Fields

How can I add custom fields to an existing Filament form and control showing/hiding them dynamically? Example: An admin should be able to add new fields from the panel for an existing form....
Solution:
#relaticle-custom-fields you can try this

How about DB Connection Pooling in Filament?

How about DB Connection Pooling in Filament?

Alter CSV data before import

Hey, everyone. I'm trying to import a CSV that contains orders and line items. There are also blank rows in some places in the CSV. Is there a way I can alter the CSV to remove some rows before importing? How can I check to identify if a row is an order or a line item?

Wrong `filename` shown and used in `FileUpload`

I have a custom disk where I encrypt the document at rest and using a Controller to authorize request and decrypt at rest. I am also using FileUpload Field to upload this documents. Upload, Encrypt/Decrypt and Controller works fine. In the controller I am returnin Conntent-Disposition and with filename but when FileUpload displaying the document it uses name attribute of Media which is fine if this was the problem but actuallu it just uses the last section of the url used to fetch the document. Name of the file becomes 13 which is the id of the Media record as well as the id used in the URL. ...
No description

Multi-Tenancy database notifications

Hello, I have a multi-tenant project with some users having access to multiple tenants, we have an export function in one of our resources. When the user requests an export which is queued and sends database notifications when the export is completed. But it seems to be displaying same notification across all tenants for that logged in user. Please let me know how do I make it display notifications only at the tenant dashboard where it was requested from....

Upgrading to Filament v4 – Alternative for TableRepeater emptyLabel()?

Hello, I’m currently upgrading my project to FilamentPHP v4 and I’ve been using TableRepeater by Adam Weston in my codebase. In Adam’s version, there was support for an emptyLabel() (used to set a value for the empty state). While migrating, I’m not sure what’s the best way to handle that part....
Solution:
yeah would accept a PR that adds the same methods as the table's empty state

How to transform a normal Wizard into a Vertical Wizard?

I need to transform the default Filament wizard from horizontal to vertical. How can I do that? What exactly do I need to edit?
No description