Filament

F

Filament

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

Join

How do I receive URL parameters in a custom page?

Sorry, this is a really simple question, but I have been struggling with it. I've created a custom page: `<?php namespace App\Filament\Pages;...

What's the best way to display "Rich Editor" JSON content within an Infolist?

I'm thinking about "RepeatableEntry" but that feels like I'll have to do a lot of custom code, is there an easy way to display this content by using a view entry for a Rich Editor?
Solution:
I have since discovered a solution for this, in case anyone stumbles across this thread in the future: ```php TextEntry::make('content') ->state(fn ($record): string => RichContentRenderer::make($record->content)->toHtml())...

Is there a way to just keep one block open in a builder block?

I built i live editor and for UX it would be nice of only one Block can stay open. Any idea? Or is there a baked in function?
No description

Issue with relation loading when using an action with multi tenancy.

- You have a ViewPage with relational content that uses withoutGlobalScope('tenancy') to show data from other tenants - If you perform an Action, you will get the issue that the relational data is not loaded any more.
Attempt to read property "model_id" on null
Attempt to read property "model_id" on null
...

Wizard Header as Navigation link

How can make wizard header as widget or section as link in every pages?
No description

Error while rendering livewire component inside of view rendering in modalContent()

Hi, I made a discussion post on the repo (link: https://github.com/filamentphp/filament/discussions/17907) for what I think is a bug, but I though I'd post it as a discussion first and repost it here to try and see if this is a known issue or possibly outside of the spec of what filament can handle in terms of component nesting. Anyway, I'd appreciate any assistance if you can help, if you could please respond to the discussion on the repo, it would be excellent. Thanks in advance!...

i need filament RTL

hello everyone can i halp me for file filament RTL

Keep the records selected when filtering

Is there a way to keep the records selected by a bulkAction after the user applies filters? Whenever a filter is used or a search is performed, all records get deselected.

SpatieMediaLibraryFileUpload mime

SpatieMediaLibraryFileUpload::make('documents') ->label('Please upload a copy of the documents.') ->multiple() ->collection('docs') ->acceptedFileTypes([...
No description

Get input value in suffix action

Ok I'm probably missing something obvious, but how do you get the TextInput value in a suffixAction? ```php public function infolist(Schema $schema): Schema { return $schema...
Solution:
Hey thanks for the reply. It was missing the public array $data declaration. I thought since it was extending Filament\Pages\Page, it would already have that

Filament nested resource with pivot

Hi everyone! I have the following models Schedule Racetrack Schedule_Racetrack...

How to allow removing a single filter indicator when using `indicateUsing`

When working with a custom filter I want to allow removing a single filter option, so I customized the generator indicators using indicateUsing, but when I click the remove button on a single filter all filters are removed. Did I misunderstand the removeField option? ```php ->indicateUsing(function (array $data) { $indicators = [];...

ImageEntry default text instead of default image?

Is there an easy way to display an endash for missing images? I was thinking something like this but I'm curious if theres an easier way, something I could define once with configureUsing ```php ImageEntry::make('image') ->label('Image') ->visible(fn ($state) => $state !== null),...
Solution:
ImageEntry::make('image')
->label('Image')
->placeholder('–'),
ImageEntry::make('image')
->label('Image')
->placeholder('–'),
...

RichEditor and medialibrary conversions

Is there a way to render rich content using a conversion defined for the media collection?
Solution:
Not possible

Building a SaaS app with Laravel, FilamentPHP, and Multi-DB Tenancy

Package Version V3 - V4 How can we help you? Hi everyone 👋,...

Entangle problem with Table Checkbox state

I’ve built a custom page that includes both a form and a table. The form provides general configuration for the page, and one of its fields is used to update the table’s data. Normally, I’d rely on table filters, but in this case the designer opted for this approach to improve the user experience. The table is populated from an array that I construct and fill via the records method. ...
No description

Popup message errors

Hello, my problem is that when I enter the filament admin interface, the error messages do not appear until I refresh the page. In fact, when I save a resource, the Successful save notification only appears after I refresh the page. What could be the problem?
No description

Filament 4 Style Issues on Livewire Components

I'm having trouble creating a Livewire component that uses Filament forms in Filament 4. The styles just don't show up. I have already imported the styles in the page css: @import '../../vendor/filament/support/resources/css/index.css'; @import '../../vendor/filament/forms/resources/css/index.css'; @import '../../vendor/filament/schemas/resources/css/index.css';...
Solution:
I ended up deleting everything and recreating it following the steps you all provided, and it seems to be working now

->queryStringIdentifier() not working in custom data

When I click Next or Previous, the query string does not update in the URL here's my custom data ```php ->records(function(?string $search, int $page, string | int $recordsPerPage) use($data,$type): LengthAwarePaginator {...

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