Filament

F

Filament

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

Join

Multiple forms on one page in v4

like this https://github.com/filamentphp/filament/discussions/8319 how can i achieve same approach with filament v4, i have multiple forms in one page, each form interacts with different model...

File upload design changes

So this is the default with filepond etc, im struggling to find guides online on how to change the design. I've been given a design from the design team and it has the choose file separate to the name part, and I cant figure out how to do that. Both images in reference
Solution:
You need to change your design teams design and have them adjust opposed to trying to adjust yourself. You would need to add a new field for that, filepond isn't that customisable within filament....
No description

TextEntry size doesn't work with prose…

When using TextEntry::make('Quote')->prose()->size(TextSize::Large) the text remains "small". This is because the prose() generates the CSS which has font-size: var(--text-sm); declaration.

HasOne not saving when using ->relationship() in a Group/Section/Fieldset

Hi, I'm wondering if I'm doing something silly or exercising futility on something that shouldn't work. I have a HasOne relationship on a model and I cannot get the data to save unless I use a repeater. I have not yet restructured the Forms to work in the new V4 Structure, but the structure is:...

Filament::getTenant() returns null inside Resource::isScopedToTenant() method

I want to query all data if the tenant id is 1, but this is not working with filament v4 ```php /** * Merge all data if tenant id is 1...

Tailwind v4 design in filament widget?

Why my design from hyperui.dev is not rendering properly in filament widget?

Possible to run different versions of Tailwind on Inertia + Vue3 and Filament?

I have a consumer facing frontend using Inertia v1 and Vue3, while using Filament V3 for the admin frontend, both currently using Tailwind V3. I want to upgrade Tailwind on my Inertia + Vue3 frontend to V4, but I want to wait with upgrading Filament V3 to v4. So my question is if it is possible to run Tailwind V4 on my user facing frontend, while letting Filament run on V3 (and Tailwind v3)? Or does everything run on the same tailwind installation/instance?...

Bundling js files with vite

Hello everyone, I’m using filament packages a lot on frontend lately. Was wondering if anyone had success bundling all filament js in a single file using vite. If so, if you could share your approach, it would be great!...

Filament 4 hover color logic

I'm registering my primary as Color::Sky, but in the latest Filament (v4), it seems to decide whether the hover effect should be darker or lighter. This looks odd next to other buttons that become lighter. Is there logic that checks contrast and determines the direction of brightness for the hover effect, and if so, is there anyway to override it?

Filament 4 upgrade: Advice about incompatible plugins

Hi everyone. First time here. I have 3 filament plugins that are not compatible with filament 4 yet. I checked their github repos, I don't see anyb reference to upgrade to filament 4 yet. I want to know what you will do in this situation or what you will advise?...
Solution:
I would do exactly what the message says 🤷‍♂️
No description

Slider jumps when minimum value is negative

So not sure whats happening, but every time we release the slider it jumps around making it pretty much impossible to use: ```php Slider::make('icon_grad') ->label('Grade')...

Action `fillForm` not working inside Repeater

After upgrade to V4 fillForm throws following error when used inside Repeater:
Call to a member function getState() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function getState() on null at /var/www/html/vendor/filament/actions/src/Action.php:498
Call to a member function getState() on null {"userId":1,"exception":"[object] (Error(code: 0): Call to a member function getState() on null at /var/www/html/vendor/filament/actions/src/Action.php:498
...
Solution:
Found a solution. Replaced fillForm with mountUsing. ```php Action::make('locations') ->schema([TextInput::make('address')]) ->mountUsing(static function (Schema $schema, $state): void {...

Full page profile bug in tenancy

when ->profile(isSimple: false) is used in tenancy we got error:
Missing required parameter for [Route: filament.team.tenant.profile] [URI: team/{tenant}/profile] [Missing parameter: tenant].
When isSimple: true it display current login user profile...
Solution:
https://filamentphp.com/docs/4.x/users/overview#using-a-sidebar-on-the-profile-page By default, the profile page does not use the standard page layout with a sidebar. This is so that it works with the tenancy feature, otherwise it would not be accessible if the user had no tenants, since the sidebar links are routed to the current tenant....

Using the new `ModalTableSelect` within an `AttachAction`

Is this possible inside of a relation manager does anyone know? I've had a quick play with returning a new component from getRecordSelect but it's not happy - it wants a Select component. I guess I could do it with a custom action ... ?...

Filament Exporter : How to custom the columns selection modal ?

Hello everyone, I'm trying to custom this magnificent modal from Filament exporter. But I struggle to make it work. Is it even possible ? I'm trying to do something like this, using getOptionsFormComponents() and putting ->columnMapping(false) on my exporter ```php public static function getOptionsFormComponents(): array...

Set Schema Default Currency Lost Inside Nested Components

I got this infolist for my products view page. ```php class ProductInfolist { public static function configure(Schema $schema): Schema...

Schema has no [record()] or [state()] set.

Trying to upgrade to v4, and i'm reciving this error when trying to access my PostCreate page Schema has no [record()] or [state()] set. in my resource i have something like:...

How to use SpatieMediaLibraryFileUpload in the Builder

What I am trying to do Using the builder my client can add blocks like "Banner/TextImage/AboutUs and so on. For the images i want to use SpatieMediaLibrary (for the responsive images option). The problem...

Relation caching after calling action

When I call my TextEntry action to upload a document, the document count does not update. It's like the documents relation is being cached somehow. It was not like this in v3 The TextEntry in question:...

filament v4 $panel->login(Login::class) not working

Hi, My app substitutes an older one where users had usernames instead of emails. So in filament v2 or v3 I overwrite the Login class to avoid the form checking the email. In fact I created a 'usuari' field instead of email field. This way I could check if the user already existed in the laravel User table and if not, import it from my legacy system....