Filament

F

Filament

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

Join

Just get the original filename?

Is there a way to get the uploaded file's original filename in afterStateUpdated of a FileUpload field? I want to keep the randomly-generated filename, but I want to get the original filename so I can $set() the text of some other fields based on the original filename of the uploaded file.

Hide the column manager

Is there a way to hide the column manager on a table?
Solution:
->columnManager(false) set this on your table
No description

CSS Documentation for Filament themes

Any chance someone knows of a source for CSS documentation that breaks down the CSS selectors used in Filament themes? I've found the core-concepts article that helps, but a comprehensive list would be invaluable. Does such a thing exist?...

table insists on "group by id" if "group by" used -> due to auto appendage of orderBy("id")

Hi all, I am having a challenge with what seems like a simple task. I am trying to create a table off of a query that uses "group by". When the page is displayed I get an error that: Grouping error: 7 ERROR: column "vendor.id" must appear in the GROUP BY clause or be used in an aggregate function...

Need clean code advice : relationManager

Hello, I have a relationManager used to create resources (not just attach them). So I have very large table and form functions....

Multiple panels

How to I make sure when users login, they're redirected to the panel I want?

Accessing Form's without Login

Hey Everyone, Can you please let me know how can we make any custom form accessible for a guest user too just for creating a new record Since every form is locked behind authentication....

Spatie Translatable Plugin - Language tabs not showing in form

Hello everyone I'm having a persistent issue with the spatie/laravel-translatable plugin where the language tabs are not appearing in my resource form. I've followed the documentation and tried every debugging step I can think of, but with no success. I would really appreciate some help. Here's what I've done and verified:...

Unable to locate a class or view for component

Hi. I'm very new to filament. I was working with v3 and recently upgraded to v4. Every thing is working currectly but for one of my custom page Im getting error:
Unable to locate a class or view for component [filament-panels::form.actions].
Unable to locate a class or view for component [filament-panels::form.actions].
...

bezhanSalleh/filament-shield with V4

Hi all, has anyone tried using Shield with the latest Filament v4 release? Are there any alternatives to this? I have a multi-tenant system wanted to manage the roles and permission from the UI itself in the same way shield offers.

How to show BulkAction button even without selecting a record (v4) ?

Hi, currently the the bulk action button in table only showed after a record is selected. Is it possible to show bulk action button but disabled at first if no record is selected?...
No description

TablesRenderHook after table filter / toggle columns

Dear friends, in list page I'm provide renderhook to table toolbar ... everything works OK, but when on the table are used filters or toogle columns ... this render hook / livewire component is not rendered again (only after hard page refresh) Have somebody similar progblem and find solution ? ```...

is it an expected behavior for createOptionForm to skip the policy ?

Hi all, so i have the following code in one of my resource (attached as image too) ```php Select::make('categories') ->relationship('categories', 'name')...
No description

Some CSS seemingly to being applied after v4 upgrade

I just upgraded with the script, everything mostly looks fine except: - Company Logo is too big - Stats widget not taking up full width ...
Solution:
unless I add this line from my frontend: @vite('resources/css/app.css') which feels very hacky so I'd love to find another proper solution
No description

Customize the style existing components!

When I customize the existing component of filament, please make sure I have to make a new theme or not? Thank you.
Solution:
custom themes are useful if you want to use tailwind classes that are not used yet in filament components. Let's say you want to use bg-purple-600 and this class is not used yet, it won't work unless you use a custom theme.

Animated Sidebar

I like to use the collapsable sidebar on desktop but now it snaps from one state to another but I want to make the transition animated but I can't get anything working, can somebody help me?

Filament v3: Adding overflow/scrollbar to forms

Hey folks 👋 I’m trying to add a scrollbar inside a Filament v3 form section, but I can’t figure out how to do it since the form builder doesn’t let me directly apply custom CSS like overflow-y-auto. I am using a GRID.
No description

How do you set the relationship name, when creating nested records?

I've got a model EntityAlias nested in Entity. I've also got a AliasesRelationManager. Everything works except the "Create". When I attempt to create a record, not only do I have to manually select the entity it's for (even though I've come from that page), but when trying to save, it's guessing the relationship name. I need to call ParentResourceRegistration::relationship() but I cannot for the life me figure out how to....

Notification transparency

In Filament v4, the success notification seems to have had the transparency cranked right up which makes it really hard to read. See image. How can I alter the opacity in my theme file while preserving the colour?...
No description

Pagination Cursor not working in Filament Tables

Pagination Cursor not working why Filament\Tables\ConcernsCan\PaginateRecords:
public function getTablePage(): int
{
return $this->getPage($this->getTablePaginationPageName());
}
public function getTablePage(): int
{
return $this->getPage($this->getTablePaginationPageName());
}
It expects page to be of type int, but paginateCursor is a string. I don't know if I'm doing something wrong, but it seems like the typing should also have a string type. Making this change to Filament\Tables\ConcernsCan\PaginateRecords and the contract Filament\Tables\Contracts\HasTable directly in the vendor package works perfectly. To get the error, just include: ```public static function table(Table $table): Table {...