Filament

F

Filament

Filament is a collection of beautiful full-stack components for Laravel.You can get help using it on our Discord.

Join

flash of unstyled content - file upload

I always see the raw file uploader that looks terrible before the nicely styled one appears. How can I prevent that?

Filament getTabs method for table on custom resource page

I have a resource DriverResource. I want to add a custom page with driver statistics to this resource and have tabs above the table. I added the tabs, they are displayed, but the content does not change when clicked. There are no errors in the console or logs My route path /admin/drivers/{driver_id}/statistics ``` <?php ...
No description

Save builder data in HasMany Relationship

Hello everyone,
I’m starting this conversation to discuss one of my needs.
In one of my projects, I needed to use a Builder component but store the result via a HasMany relationship instead of the traditional JSON approach.
...

Layout fields in modal importer

How can divide the import fields in 2 columns in the modal? I cannot find it in the documentation?

How to register panel provider in plugin

I have a ExamplePlugin, how to register a panel provider inside this plugin?

Spatie Media collections are not working in CategoryResource

I've already set to collection name but images are saving default collection like 1/example.jpg like that. Where am I do wrong? ```php Forms\Components\SpatieMediaLibraryFileUpload::make('media') ->collection('category') ->maxFiles(5)...

Default value in Repeater items

I am trying to make my repeater items have a default value in one of its fields that increases for each new repeater item. this is a code snippet: ``` Repeater::make('shipping_infos')...

Table row grouping oddness

I am grouping rows by a field and a related field like so: ```php use Illuminate\Database\Eloquent\Builder; return $table ->recordTitleAttribute('name')...

Modal window does not create a map.

Hello! I have encountered a problem that the form in my modal window does not create a map. Livewire/show-user-cards.blade.php: <div> <div class="py-5">...
Solution:
Seems like a complicated approach. just make the card button an action that loads a ->form() and users ->model() fillForm() and uses a repeater? ```php \Filament\Tables\Actions\Action::make('account_records') ->label(' ')...

getOwnerRecord() in Action

I moved an action from a RelationManager to an own class extending Tables\Actions\Action. In the form() method of this action I used getOwnerRecord() successfuly when I had it directly in the RelationManager. Now, in the class it says getOwnerRecord method does not exist, and when using getRecord() it's null....

Relationship select executes distinct query that doesn't support having JSON columns

Pretty easy, we have a products table that has a json field. And it has a relation to itselfs. We use this select: ```php Forms\Components\Select::make('upsells_data') ->relationship('upsells', 'name') ->maxItems(5)...

Minimal-Theme no longer works with Laravel 12 / TailWind 4 ?

I've followed up the new instructions for the change in TW4; I have added the following to my AdminPanel: ``` ->theme(asset('css/filament/admin/theme.css'))...
Solution:
Hey @Cem, sorry for only discovering your post now (be sure to just email me whenever you run into issues! 😃) The instructions in the docs that tell you to use npx don’t work well in all cases (when using themes or plugins). Hence, I wrote a guide on how to properly use Tailwind CSS v4 in Laravel side by side with Tailwind CSS v3 for Filament. Please check out these instructions and let me know if anything is unclear 👇...
No description

How to save hintAction form on keypress enter?

Hello, I have a booking form which has all the inputs disabled on EditPage, we have added an hintAction form to open a modal and make the changes to that input and it works fine. My client is now asking to add a functionality to press enter and save that form. Please let me know if there is a Filamentphp way to do it? or Alpine JS way? ...

How do I apply CSS to Repeater in form?

I created a resource called "Article", which consists of Columns & Blocks. This setup allows me to specify the number of columns I want and assign a block type to each column. The issue I'm facing is with the layout distribution: If I select 2 columns, they should be displayed side by side, each taking 50% of the width....

`updated_at` datatype mismatch

Am i the only one getting this after https://github.com/filamentphp/filament/pull/15650/commits/c263313598cecf49a0878c53741c88de9c8fff23 I updated to 3.3.4 while rolling back this commit and i don't get it any more 🤔...
No description

Unsupported operand types: string + int in Tabs

I use 2 different tabs with multiple tabs within my Infolist resource. When I ->persistTabInQueryString('relations') then this error occurs...
No description

Change redirect path after session expires

Hey Guys, I have got the redirect to work for manual logouts to go to /login instead of /filament/login. However if the users session expires it still takes them to /filament/login instead of /login. Anyone point me in the right direction to change this behavior?...

Multi tenancy file upload/edit

Hello, I'm trying to create an Multi tenancy app with filament. I successfully upload a photo but I get cors error on images when I try to edit my "product" where I have those photos. I'm using subdomain multi tenancy. ...

Fileupload delete image on filesystem (avatar)

I am using Breezy. The upload works as expected. When you click on the X to remove the avatar from your account it does remove the database entry. I am trying to figure out how to correctly delete the physical file as well. ``` ->avatarUploadComponent(fn () => FileUpload::make('avatar_url') ->directory('o-res/avatars')...