Filament

F

Filament

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

Join

Sort cluster navigation

How to sort cluster navigation because this protected static ?int $navigationSort = 3;does not work for it.
No description

Login Page Additional Content

Hi Fellas, i am having issue with placement of additional content that is shown on the picture. I have created custom Login::class that extends one from Filament, and also passed custom view. I will place here images of custom view and where the content is supposed to be.
No description

Customized action button "Apply"

I want to create a customized action button "Apply" in job listing table, and when I click it will direct to Filament applicaiton form to create a new application, same time pass the job listing id to the applicaiton form, how to do that without creating new route and Laravel view, thanks!
Solution:
You could pass the ID as a GET param and retrieve that get param in the mount() method of the CreatePage

Is there a resource where we can find filament's HTML (not in a blade component format)?

To serve as starting point for building custom plugins or customizing the panel via hooks?

Model instance isn't updating

I have a character model that can be soft-deleted. However whenever I try to save the updated model instance in the admin panel it shows the saved notification, but on accessing the model again it reverts to the previous state. Attached is the character panel code. I originally thought it was my polocies, but I set everything to true and the issue still persists. Update: Name and Rank is updating, every other field reverts to the previous state....
Solution:
Does your Character model $fillable array have all the elements you want to update?

Dinamically control content of <x-filament::modal>

Hey everyone, I have a custom page that loads A LOT of models and for each of these models there's a <x-filament::modal with details about that specific model. Since it's a high number of models, this page is becoming incredibly slow, I was given the task to optmize it. I thought about the idea of having only one modal on the page and dinamically change the contents inside it before opening after I click one of the models Open modal button. The problem is: I couldn't find a documentation page talking about doing this. My knowledge about livewire, while not zero, isn't great. Can someone point to a docs page of an article where this is done (if one exists) so I can get a better grasp about this idea?...

filament contribution

Based off the guide https://filamentphp.com/docs/3.x/support/contributing I want to install filament locally so I can make a PR for it. However, despite cloning into the root directory of the laravel app and updating composer.json, filament is still installed in vendor
No description

Applying Custom Stilization Via "Hook Classes"

Hi guys, I want to apply custom background to fi-topbar and i am doing it in my app.css file. But for some reason it is not applyed. Any suggestions why? Pictures of app.css, vite.config.js and tailwind config
No description

Progressively adding Filament to an existing admin panel

I'd like to progressively add Filament Panels to an existing admin panel, can anyone share any advice or tips? Specifically can anyone point me in the right direction for these: 1. Use the existing login/auth UI (instead of Filaments one)...

Manually getting media

The upload and table column work great, but now I want to grab the thumbnail to use in a controller, but I have no way of knowing what is the thumbnail. Since there can be multiple media files connected to an model. How do I do this?

enum value in Forms\Components\Select

My enum labels shows both as Select element value and label. Using Filament docs example here as a base. ```php enum Status: string implements HasLabel...

Table actions / alpine / livewire UI

Hi, I've got a table that has accept and reject actions on each row. What I'd like to do is only show the actions on the first row UNTIL an action has been clicked. If accept or reject is clicked, then the actions for the 2nd row should appear and so on. It might be worth adding that my table is in a custom component in a modal. I'm struggling to know where to start with this. Usually, (without using a front end framework) I'd just assign some classes to the table and actions and hide / show based on interactions quite simply. ...
No description

Reset table pagination after reactive property changes

I have a Reactive User property that I use in a table query to fetch Quotes. When I click on page 11 for one user, then switch to another user who only has 6 pages, the table is stuck on page 11, showing an empty page. #[Reactive] public User $user; ...
Solution:
```php public function updatedUser() { $this->resetTable(); }...

Make the 'Table Action Buttons' Sticky when scrolling left to right

Good day guys. It is possible to "Make the 'Table Action Buttons' Sticky when scrolling left to right"—specially on desktop views Like on video on attachment. Thank you....

Why is filament clone so large?

When I clone filament into my root directory, its 410MiB in size But when I install filament with composer its only 8MiB?...
Solution:
you can try git clone the_repository_url --depth=1, if you don't need the Git history, sometimes it's a bit smaller, but not always
No description

Tailwind class "!" prefix removed when using Panel from custom package

Hello! I've created a Laravel package and a panel provider inside. Everything works just fine however I have a strange issue with tailwind. It does not matter whether I add custom vite theme to the panel or just use a default theme. There is a !max-w-[14rem] class in dropdown by default. I can see this class in css output generated by Filament and also in my custom theme. But when I load a panel from my package, the ! prefix is gone in html! When I have a fresh Laravel app with filament inside, the prefix is there. Any ideas what could I check to debug it?...
No description

requireconfirmation for notification action

look at this code \Filament\Notifications\Notification::make() ->warning() ->title('Attention') ->body("There are {$itemCounts} item inside repeader. What should i do?")...

Typed property Filament\Tables\Filters\BaseFilter::$table must not be accessed before initialization

I have a ListRecords page with a table and 3 stat widgets. The widgets are setup to interact with the filtered table via the ExposesTableToWidgets and InteractsWithPageTable traits . The table has 9 different filters. 8 out of these 9 filters work great and filter the table and the widgets react to the filtered table. However, one of these filters, the only one that is a relationship to the data causes an exception to be thrown. I'm not sure how to even begin troubleshooting this but this is the filter causing an issue:...
Solution:
I managed to solve this. I'm using kenneth-sese-advanced-tables plugin and it turns out I had to use the exact column name as the filter name. Therefore adding account.name to the make method resolved my issue. ```php Tables\Filters\SelectFilter::make('account.name') ->label('Account')...
No description

User administration for tenants

I would like to have a page where the tenants can manage their members, ie. change role/profile information and invite new members. If I simply make a resource for the Organization model (which is my tenant model) and make a relationshipManager on that, then I can access the organization and modify the user and pivot attribute. But I want the tenants to be able to do that also, but obviously only for their current tenant......
Solution:
Overwrite the getEloquentQuery() method on the Resource and add a ->where() clause when the user is a tenant