Filament

F

Filament

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

Join

Can I search relation's values when using the relationship manager to attach items to a resource?

For example I have have an auction model and want to be able to attach products to the auction, but would like to be able to search the relations of the product for example it might have a manufacturer with a name field. I have tried: ``` Tables\Actions\AssociateAction::make()...

How to pass parameter to list page

I want to pass channel paramter and get on list.. i add here ``` public static function getPages(): array {...

Export not working when using Auth0

I'm trying to export data, nothing fancy or complicated but I'm getting the following error
Auth0\Laravel\Guards\AuthenticationGuard::login(): Argument #1 ($credential) must be of type ?Auth0\Laravel\Entities\CredentialEntityContract, App\Models\User given, called in vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php on line 339
Auth0\Laravel\Guards\AuthenticationGuard::login(): Argument #1 ($credential) must be of type ?Auth0\Laravel\Entities\CredentialEntityContract, App\Models\User given, called in vendor/laravel/framework/src/Illuminate/Auth/AuthManager.php on line 339
...
Solution:
I ended up using your Excel Export plugin 🙂 @Dennis Koch I commented out the lines that were failing and the file was being created and saving correctly but now the notifications were failing :/

custom wizard·

Hi guys I want to custom wizard. I dont want a default wizard header instead i want a progess bar witch circle, each circle representative for a step. so I want to ask how to custom that and i want to change the back button and the next button example i want to move back button on the header bar with circle progress bar , I couldn't find it on the document...

Is there a way of making database notifications pop up like a standard notification?

I'm using echo to sed these live, and i'd like them to pop up onto the page and also go into the notification overlay
Solution:
I don't think so.

Table on livewire component is involuntarily refreshing component on Action

I have a filament Table in a livewire component, with a simple Action: ```php public function table(Table $table): Table { return $table ->query(/**/)...
Solution:
I don't know what kind of trigger the action fires that causes the component to refresh
It's a Livewire request. Livewire components rerender on requests...

Filter Relation Manager records by Query string parameter

I have a Edit page with a relation manager I want to filter the records in relation manager based on a value given in the query string. I notice that I can't access from here, but I can from the Edit Page. Any idea?

Admin Model instead of User model

Hi everyone, I’ve just migrated my project from Filament v2 to v3 and I’m encountering an issue with authentication. Previously, I was using the FilamentUser trait on my custom Admin model, and everything worked fine. However, after the upgrade, it seems Filament is now defaulting to the User model for login. In my application, I have separate tables for users and admins, and I need Filament to authenticate using the Admin model instead of User....
Solution:
The purge was the problem. Thank you for your time.

Modal action problem

Guys is there any way to make my modal not closing after i click the submit button? I tried using modalsubmitaction(false) but its just gonna hide the button...

Shield Permission Widget Issue

Hello, I have an issue where Widgets under plain Filament/Widgets namespace are recognized into shield permissions. But ones that are within resource example: Filament/UserResources/Widgets/** they are not recognized in shield permissions sysstem....
Solution:
Fixed it as soon as I posted it here.. Issue was discovering of widgets, as soon as I added them into FilamentPanelProvider under ->widgets([]), they are working!...

UserResource fails to load when RouteKey is defined

I have Spatie/Sluggable set up on my User model, so my users' bio pages can be displayed on the public site. When I set the RouteKey to use this slug, I get the following error from the UserResource
Missing required parameter for [Route: filament.admin.resources.users.edit] [URI: admin/users/{record}/edit] [Missing parameter: record]. at /home/forge/nftnewstoday.com/vendor/laravel/framework/src/Illuminate/Routing/Exceptions/UrlGenerationException.php:35)
Missing required parameter for [Route: filament.admin.resources.users.edit] [URI: admin/users/{record}/edit] [Missing parameter: record]. at /home/forge/nftnewstoday.com/vendor/laravel/framework/src/Illuminate/Routing/Exceptions/UrlGenerationException.php:35)
...

notification

Hello. How can I send a notification to the user about a content whose status has been updated from the admin panel so that they can learn the status of this update from the user's panel?

Table Builder doesn't respect my policies on a DeleteAction::make()

- I'm building a project in a modular way, and registering my policies from a module but that doesn't seem to be the problem here. - If I specify a ->action() for my DeleteAction::make(), then in the I can successfully call my policy. But Filament doesn't pick it up by default. It deletes every item I call delete on. - https://filamentphp.com/docs/3.x/panels/resources/deleting-records#authorization according to the docs, as I understand, it should be able to do that....

How do you add a header in the Form?

I am trying to implement a header under the toggle but I dont know how to do it.
No description

KeyValue set key to be treated as a string

Currently if you have KeyValue field and you enter a string with a dot (.) in as a key value, you get an error: Filament\Forms\Components\KeyValue::{closure:{closure:Filament\Forms\Components\KeyValue::setUp():58}:60}(): Argument #1 ($value) must be of type ?string, array given Is it possible to set that key is treated as string not array?...
Solution:
To answer my own problem. I extended KeyValue field and make it more "safe": https://github.com/BostjanOb/filament-safe-key-value

Http clients inside requests not detected by Telescope

If HttpClient request is sent through web.php it is being logged
Solution:
it was telescope by default ignoring livewire routes I had to remove it form telescope.php

Performance question

Hey guys, I'm evaluating Filament as an admin panel solution. I launched the demo locally using Docker with a Laravel Octane server. Everything works fine, except for one issue: performance when loading tables with 50 or more records. For example, fetching 50 records (orders, customers, etc.) takes over 1 second, even locally, with Laravel Octane and the latest PostgreSQL. I've applied all the optimizations listed on the "Installation" page. Is this performance typical for Filament, or is the demo just not optimized? The hosted demo app behaves the same way....

Filament Performance Issue on Production (Even with OPcache + filament:optimize)

Hi everyone! I’m facing a performance issue with my Laravel + Filament v3 app on the live server. The app runs fast locally (Docker), but it feels noticeably slower in production, especially on pages with Tables and Dashboards. What I’ve already done:...

custom modal content

I make a filament page and implement HasTable, i want to make action view with modal and use custom modal content, but the modal not show up and no error, ```php public function table(Table $table): Table {...