Filament

F

Filament

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

Join

how to fix ->requiresConfirmation() thats not showing

i already insert the requires confirmation but there's nothing modal to confirm and its just become submit button that just load and then save. Action::make('Case Proceedings')...

Action $arguments returning empty in visible closure

I'm currently trying to access to $arguments data within a visible closure but it's currently returning empty. Is it possible to access this variable here? I know $arguments are being passed correctly because they work fine in modalDescription This is an Action on a custom Livewire component on a custom page using Filament\Actions\Action Function not working:...

Multi Guard

Hello, I am encountering an issue in my Laravel project where I have two separate authentication systems ā€” one for regular users and one for administrators via the Filament admin panel. Both use the same database, and it seems that the sessions are overlapping. Problem description:...

hasCombinedRelationManagerTabsWithContent bug

I think there's a bug when using this method : public function hasCombinedRelationManagerTabsWithContent(): bool { return true; }...

Is there a way to remove requireConfirmation model Icon?

For example I want to remove th Trash icon from the model.
Solution:
Nevermind, we can just do ->modalIcon(null)
No description

i have problem in Repeater

hello I am creating a structure for the products, which is actually connected to the category, and an AttributeGroups is selected through the category, and using this, we come and get the attributes of this group, although it is not compatible with the filamentphp structure, this is what I did. But, I'm looking for a function apart from mutateRelationshipDataBeforeSaveUsing and mutateRelationshipDataBeforeCreateUsing, because these require relationship to be active. https://gist.github.com/prs1378/6bcc5241cab9603ec5067130d01ac400#file-productsresource-php-L181...

Render livewire in view page

Hello all, I have OrganizationRequest class that has a relation manager table (teams), now I want to show team list in view page as collapse tabs. Any one can help?...
No description

any command to generate resources, pages to a specific panel?

hi theres any command to automatically generate everything in a specific panel ? thank you
Solution:
you can pass --panel=team to almost any command also running make:filament-resource --help will get you a list of all params...

"There are no commands defined in the "icons" namespace." when called via Widget Class

I have created a custom widget to execute some commands like sitemap generation, build caches, nuke caches. However, I am getting a namespace error. I have tried referencing command class in Artisan::call() but it didn't help. Here's my code ```php...
Solution:
there is a condition for these commands its only run on console: if ($this->app->runningInConsole()) so you'll need to register the command manually in app.php...

Disable Bulk action if some row is selected.

Disable Bulk action if some row is selected.

Troubles setting custom content for validation email

Hi all. I'm struggling a bit with the customization of email content. In this case specifically the verification email a used gets to verify his email address. I tried creating a custom email verification class that overrides the VerifyEmail() class. I tried adding stuff to the AppServiceProvider in the boot(). But none of them see to get used by my code. Maybe some of you already did this before. What would be the best way to get this to work?...
Solution:
Hi all, this forum is a rubber duck for me sometimes šŸ™‚ So I found a solution. I create a couple of custom stuff for Login, Register and VerifyEmail. And with a little help of ChatGPT, got it to work šŸ˜‰

Global Notification Colors

As far as I can see, there is no way to automatically have the color() of the notificaiton simply to be the same as the status(), right? So if its a success message, the color will be success (green). I simply want background colors automatically on all notifications. Am i missing something? Tried Notification::configureUsing($notification), but nothing is available in the $notification.

Help Needed: Issues with Filament Custom User Approval and Logout Redirection

Hey everyone, I could use some help with a custom user approval implementation using Filament in my Laravel app. Here's the situation: I've set up a middleware to check user approval status after registration, which redirects unapproved users to a UserApprovalPrompt page. But Iā€™m running into a few issues: ...

how to make nested headings on export filament

I have a meta column with json data type. I want the meta to have a heading, and the meta data contents also have a heading like in the picture. but I didn't find a way to solve the problem....
No description

Use multiple guards for auth?

I have User, Employee, and Client models, and all of them will use the same Panel. I have set up the guards and everything, but the filament function
->authGuard('client')

->authGuard('client')

...

Resource live update

How can i update a resource using pusher i mean when the user get pusher notification i want to update resource called reservation resource

Why does my filter icon not look right?

Something up with the css? Cheers, Tee
No description

badge color is not reactive on table

TextInputColumn::make('test_2'), TextColumn::make('total') ->badge() ->color(fn (string $state): string => $state <= $failedGrade ? 'danger' : '') ...

Infolist - Relation Manager with related records read-only

In panel builder I have a table Users with relation to Courses. I use Infolist for detail records. In the bottom of the page I can see related Courses, but without any options to edit or add. Can you put me on the right way to do that? Thanks in advance...

Get the index of a repeater?

Is there any way to get the index of a repeater? Because I have to perform a comparison operation with an array of objects, and thus need the index of the repeater...