Filament

F

Filament

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

Join

Whats the best way to use Filament Tables in a Custom Package

So I am making a Laravel package and part of that is a small UI. I would love to use Filament Tables on that UI as it would solve most of the problems and save a bunch of time but my question is what is the best way. The installing project may or may not have filament installed. Whats the best way to include the assets regarded for Filament?...

New Button Underneath Form

Hi everyone, can I add new button here (please see screenshot). I want to add another button to move to review page. Thanks...
No description

afterStateUpdated not firing when removing from multiple FileUpload

I have a FileUpload field in a custom Livewire component: ```php FileUpload::make('images') ->disk('public')...

Auto naming based on 3 select input fields

So i want to auto naming the program name based on user input on 3 select option , the type of internship , start month and get the current name of the requester, its like a slug but dependant on more fields, how to achieve that? the format of the program name will be "name - type - start month"
Solution:
Make your select inputs ->live() Then use something like this
->afterStateHydrated(fn(Forms\Get $get, Forms\Set $set) => self::setProgramName($get, $set))
->afterStateHydrated(fn(Forms\Get $get, Forms\Set $set) => self::setProgramName($get, $set))
...
No description

toggle component issue

is anyone else having issues with the Toggle element? the active state is exceeding the component border.
Solution:
Actually no, I was trying to build a 3D css animation, and the package I installed messed up

hasCombinedRelationManagerTabsWithContent together with infolist breaks

I got a simple resource with an infolist and some relationmanager on a ViewPage. This combination seems to break the tab navigation for some reason. If i either disable hasCombinedRelationManagerTabsWithContent OR change the Infolist to a form the navigation between the tabs work. The error thrown is always in livewire.jsUncaught Component not found: ANYCOMPONENTID Breaking it down:...

Saas with filament

Which saas tool is recommended for filament (classic variant option 1,2,3). (My roles and permissens will be create with shield.) Or a Panel for any saas option? What can or should I consider at the beginning of a filament project in case I want to make a saas out of it later? Or should I start with a saas shell at the beginning of a project? There are a tutorial?...
Solution:
for one-time payments, we had a tutorial using Stripe: https://laraveldaily.com/post/filament-stripe-one-time-payment-form-elements

Testing form actions

Couldn't see this in the docs. Given that a livewire component is set up with a custom form and action as follows: ```php public function form(Form $form): Form {...

Error when adding a new item to REPEAT.

Hi, I have an error that I can't solve in any way. I've already searched and nothing. I have a Repeat that is accessing a ManyToMany Relationship. I did everything according to the documentation and it is reading and saving correctly, but when I ask it to save a new record or edit a record, it saves correctly, but gives this error on the screen. If I cancel the error and see, it saved everything correctly. I'll attach the codes I used. Thank you.
No description

Tenant users - hide certain statuses from the menu

I am trying to show tenant users and their teams in two areas of my app. One is a filament resource page called Users, a table view with users in the current tenant that have the following status in team_user table: A, B Code for it...
Solution:
Figured it out. The view uses getTenants() `public function getTenants(Panel $panel): Collection { return $this->teams()->where('team_user.status', 'A')->get();...

Can't insert table in TinyEditor plugin

Inserting table is not working on TinyEditor specifically if you're using slideover or modal

Alpine Error on Tenant Switcher Dropdown

Hello, i have setup a multi-tenant filament panel. However when i click the dropdown nothing happens and throws alpine errors in the console:
No description

Full page loading

Is it possible to add, for eaxample when forms saving, a full page loading indicator? Thanks...

Selectively saving form builder fields in different DB columns

Hi, I built a large form with many input fields in a livewire component with form builder. Most of the fields will be saved directly to their corresponding DB columns, so just creating a new model with $this->form->getState() is fine. However, I want to exclude some of the fields and combine them into a single JSON DB column. Is there any way to exclude fields from the getState() method and save those manually?

In spatie media library plugin (official) I have an issue with image quality and image editor

I'm using following form field: SpatieMediaLibraryFileUpload::make('attachments') ->collection('attachments') ->multiple() ->openable()...

Issue with livewire component (a table) in Infolist

Summary : After calling an action, devtools console shows error like :
Uncaught (in promise) Component not found: uVTyoagOvbBWvJbGHy4J
Uncaught (in promise) Component not found: uVTyoagOvbBWvJbGHy4J
Filament : 3.2.117 Laravel : 11.27.2...

Wizard: create button not working on touch

Hello! I do not know if it is a bug or if I am doing something wrong: I have a multi step form. The last step is just a file upload....

Reorder records only for self group

Is it possible to reorder records for each group? After clicking reorder button all records shown together without group. See in pictures...
No description

Import CSV multiple columns in one relationship

Is it possible to import CSV with multiple columns in one relationship column (determine if there is such a person - by two columns: name and birth_date). CSV has seperate columns - name and birth_date

Interact with Pivot attributes in Relation Manager

```php Tables\Columns\ToggleColumn::make('is_active') ->label(__('department.attributes.is_active')) ->onIcon('heroicon-o-eye') ->offIcon('heroicon-o-eye-slash')...
Solution:
i found a solution: ```php Tables\Columns\ToggleColumn::make('is_active') ->getStateUsing(fn ($record) => $record->pivot->is_active) <--- add this ->sortable()...