Filament

F

Filament

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

Join

Getting Error with plugin

Hi all I am getting an error when I install the following plugin (CWSPS154 - UserRolesPermissions)
Could not check compatibility between CWSPS154\UsersRolesPermissions\Filament\Clusters\UserManager\Resources\PermissionResource::infolist(Filament\Infolists\Infolist $infolist): Filament\Infolists\Infolist and Filament\Resources\Resource::infolist(Filament\Schemas\Schema $schema): Filament\Schemas\Schema, because class Filament\Infolists\Infolist is not available
Could not check compatibility between CWSPS154\UsersRolesPermissions\Filament\Clusters\UserManager\Resources\PermissionResource::infolist(Filament\Infolists\Infolist $infolist): Filament\Infolists\Infolist and Filament\Resources\Resource::infolist(Filament\Schemas\Schema $schema): Filament\Schemas\Schema, because class Filament\Infolists\Infolist is not available
When I add it to the Filament Provider, I get the error above. I tried the help thread for this plugin, but it is not active. No one has answered anyone in 4 months...

Best approach for nested records

For this school project i have an Exam resource that has categories. A category can have questions. What would be the best approach? Requirments - Categories must be sortable/addable - Questions must be sortable/addable...

How to prevent collapse navigation in sub-navigation

Whenever I toggle close the navigation, it also toggles the sub-navigation. How can I prevent this?

Test validation on custom field

Given that I have a custom field that extends the filament Field - how do I write tests to test the validation? Say for example, I have a date field with some methods like mustBeInPast and mustBeInFuture which are essentially shortcuts for the rules() method. The only way I can find to do this is to create a form component, add my custom field and then test it like a normal form. This does seem the long way about it though rather than just testing the field directly. ...

Using filament revisor plugin

Hi, Anyone used this plugin with relations, specific the hasOne relation. I set up the main table and secondary table, configured both to use the revisor and used revisor context to point the relations on secondary table with drafts, published or versions. When saving the main table i'm getting error because revisor fields are null....

Select filter in QueryBuilder for nested relationship

Hi everyone, I’m using FilamentPHP with QueryBuilder::make() and I want to create a filter similar to the RelationshipConstraint example below: ```RelationshipConstraint::make('client')...

CheckboxList description with relationships

I have table called technologies which has id, name, description and I am displaying this using checkboxlist like below ``` CheckboxList::make('technologies') ->required()...

Single select with belongsToMany relationship

I have a tenant system, users with teams. I want to create user and attach it to teams (team_user database), but I want to select only one team on select form because user can be in one team only, not on multiple. how can I do this correctly? ``` Select::make('team') ->relationship('teams', 'name')...
Solution:
I use normal Select or relationship (without multiple) and handle manually using Lifecycle Hooks

Testing Section header/footer Actions

Hello, How do I test the schema/submit action for an action I defined in a Section's headerActions or footerActions within a panel page? For a start, I have my schema set up like so:...

Brand Logo Height. brandLogoHeight

Hi. How can I specify a brandLogoHeight for the login page, and one for the navBar ? As seen on https://filamentphp.com/docs/4.x/styling/overview#adding-a-logo if I use ->brandLogoHeight('2rem'); it affects both login form and brandLogo. I need a bigger login logo, and a smoller one in the navBar. Thanks...

RichEditor upload an image

I use RichEditor and upload an image, but the URL in the database includes the full storage domain. How can I store only the image path?

Job Responses - Guidance Needed!

Hello! I’m new to larval and was hoping to get pointed in the right direction! I currently have a page called FileManager with a table of files and a file upload button. The button will then trigger a job that uploads the selected file to a sftp server. How can i create a response to then show a notification and refresh the table? What’s the best method to do this? I was hoping to call a UploadCompleted function from the FileManager but can’t seem to get it working. What i’ve tried so far: creating a cache system that adds a file success state once the job is finished. I then use a poll system to detect this. The issue is i can’t reference the UploadCompleted function in FileManager. I was wanting to make a Modular system where the polling system isint tied to per page. I also tried using events but with a similar outcome. I was able to display a notification from the polling system but would like to use the function UploadCompleted. Worst case, i can keep the response functions inside the polling system, i just need to find a way to refresh the tables. What’s the best/recommends approach for this? ...

Filament Drop-down menu

Hi all. I'm trying to implement a drop down menu in the title bar of my app. Filament 4, Laravel 12. ...

sendEmailVerificationNotification (Admin created users)

In my app the admin registers the users, ie the registration page is disabled. I enabled MustVerifyEmail however that does not trigger emails to go out. I found a workaround to send the emails however when the user clicks the link it always says invalid signature and I do not understand why. If the user simply tries to login without clicking the link in the email, they are presented with the resend email, which then works. Any help on how to properly send the verify email notification when an admin creates another user would be greatly appreciated. ``` class User extends Authenticatable implements FilamentUser, MustVerifyEmail {...

[Bug/Regression] Dynamic panel colors not automatically injected in custom theme CSS with Tailwind 4

In Filament v3 with Tailwind v3, dynamic panel colors (defined via ->colors() or tenant-specific colors via middleware) were automatically available in custom theme CSS files without any additional setup. With Filament v4 + Tailwind v4, these dynamic colors are no longer automatically available when using utility classes like text-primary-500, bg-primary-50, etc. in custom theme CSS files. Expected Behavior (Filament v3)...

When trying to create a TableWidget

get this error Trait "Filament\Support\Concerns\HasDescription" not found...

Rules for Laravel Boost (MCP)

Hello, I use Windsurf IDE with Claude Sonnet to generate my Filament code. The problem is that it generally follows version v3 and not v4 (file structure, use of Form instead of Schema, etc.). Do you know where I could find an effective rules file to help the AI undxerstand the Filament v4 documentation? ...

Top and left side panel navigation

I'm using filament to create several pages for users to add various sources of data. The left side navigation is perfect for each type of panel but I also need a top level navigation bar to switch between the various Filament resources. Anyone who can steer me in the right direction?...

Issue with Filament form fields being cleared during live updates

I have 2 fields that will be filled quickly using tab navigation. The second field doesn't need to stay updated/reactive, but it seems that when the data updates, it clears what the user is typing. I've tried using: PHP...

Hiding / Preventing "Back" in Panel Wizard

I've got a wizard form on a Create page resource. See: https://filamentphp.com/docs/4.x/resources/creating-records#using-a-wizard Is there anyway to hide or remove the back button. I want the wizard to be a one-way experience. ...
Next