Filament

F

Filament

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

Join

Reorderable button does not update automatically {hide/show} when the condition argument changes

I have this code in my resource class ``` public static function table(Table $table): Table {...

Move default Form Actions?

Hi folks, I have a resource where I have a Form, I am wanting to move the default actions from the bottom of the form into a column in the right. I can't see anything in the docs or online about how to achieve this. Am I missing something?...

CreateAction inside RelationManager with auto id of current ownerRecord for the form

CreateAction inside RelationManager with auto id of current ownerRecord for the form

BulkAction modal width not changeable

Hi, I have made a bulk action for products inside an order. I want to set the width of the modal but it keeps the small size. ```php BulkAction::make('addToTransportOrder') ->modalWidth('2xl') ......
Solution:
Solved it myself: for anyone running into this issue. I made the mistake of also having ->requiresConfirmation() dumb......

Change side collapsible() appears in table builder

by following the example in https://filamentphp.com/docs/3.x/tables/layout#custom-html, i just want to know if there is a way to put it on the left of the row

Filament behind a reverse proxy, wrong redirections

Hello, i have my filament installation behind a reverse proxy. If i hit the server URL (sub.domain.de) i'm getting redirected to 12.34.56.78/login (local ip in my network) . (Theoreticly correct, but only localy) If i hit sub.domain.de/login manualy i can login. but this is very anoing....

Can't spa change avatar profile directly?

after I saved the profile changes. The avatar image doesn't immediately change unless I refresh the browser.
No description

FBlog won't save post when TiptipEditor output is set to JSON.

I'm trying out the blog plugin for filament. I already had Tiptap editor installed and changed the config to save output as JSON. This will result in an "array to string conversion" when trying to save the post. Added the body of the post to the $casts as array solves it, but since the Post model resides in the vendor folder I can't edit this. Is there a way to work around this?...

Tab on custom page

Is there a way to implement tab on a custom page just like on list record getTab() method

is it possible to create a notification in alpinejs without it going to the server?

` <div class="background-light900_dark200 relative max-w-4xl overflow-hidden rounded-xl border border-gray-200 px-5 py-10 shadow-sm dark:border-none" x-data="{ vote(type) { if (!$wire.userId) { return new FilamentNotification()...

Livewire only supports one HTML element per component. Multiple root elements detected for component

Error message I get: Livewire only supports one HTML element per component. Multiple root elements detected for component: [auth.forgot-password-page] ```<!-- Form Group -->...

Hide close button in filament form

Is it possible to hide "Close" button in filament form?
Solution:
You could chuck this in the create page: ```php protected function getCancelFormAction(): Action { return parent::getCancelFormAction()->visible(false);...
No description

How in tiptap editor to set maxLength

I am using the tiptap editor and somehow when i set the maxLength for the content i get the error that there is not a function maxLength, i search in docs but there is not a function for the limit of content so what i should do

Custom page

Hi all, I want to make page more custom for view, I have html like this and I want to implement in filament page and my page : ...
Solution:

prefix does not exist.

TextColumn::make('volume') ->summarize(Sum::make() ->prefix('Total volume: ') ) ...
Solution:
summary affixes were added in 3.2.97, you just need to update filament. latest release is 3.2.111

Access to the tenantId in the panel or middleware of a package

Is it possible to get the current tenantId in the panel or middleware of a Filament plugin? Haven't been able to get it yet, I'm curious if it's possible at all.

Customizing filament login behavior

I'm having a problem customizing the login behavior in filament I have a SaaS API project with multiple databases. On the login request I get the credentials and find the user database and reconnect to the respective database and on the next request I get the database from token and reconnect again and everything works fine in my API branch. Now, I am using filament for admin panel, and for using this structure I have created new login class and extend \Filament\Pages\Auth\Login and modify authenticate()method...

Navigation Group

How to make navigation group inside a navigation group?

Save record and repeater with all Relationships on add item click

I'm trying to figure out how to save a record and all entries on the page while editing a repeater component. I thought about going over the getCachedExistingRecords method and saving the state one by one. But that produces kinda unexpected behaviour. For example when deleting items from the repeater. Do you have any hint for the right direction?...