Filament

F

Filament

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

Join

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

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