Filament

F

Filament

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

Join

Added new Resource but it is not showing on the left navigation?

I have created a new Resource for example setting but it doesn't even show on the left side navigation? The only way I can show a new menu to the left side navigation is by doing a command php artisan make:filament-page Setting What's the reason why the Resource is not showing on the menu navigation?...
No description

FileUpload dynamic directory issue

I've build a Fileupload Helper like so to be reusable across resources: ```php class FileUploadHelper {...
No description

my widget is hidden if I select date range.

I have this kind of condition in can view the reason is on dashboard only MerchanAdmin can see the widget but on the page both SuperAdmin,Admin and Merchant Admin can view the widget public static function canView(): bool {...

Multiple actions on livewire page through loop

I want to render multiple action on livewire page, dynamically I have this method on livewire class, ```php protected function getActions(): array {...
No description

use togglecolumn for visual

can i use it without the updating feature ? i dont want it to be disabled

Way to skip saving Layout component relationship if form data is null

Is there any way not try to save Layout component relationships if any of the form data is empty/null?

Problem applying filters with HasFiltersAction on a custom Filament Page with Widgets

I created a custom Page called SaleReport in FilamentPHP, and inside the Pages/Widgets directory, I created several custom widgets (charts and tables) that the page uses. I’m trying to apply date filters (start and end dates) across all the widgets by using the HasFiltersAction trait. However, the filters (startDate and endDate) are always coming as null inside the widgets, even though I’m setting them through a FilterAction on the Page. ...
No description

Tab closes as soon as the Modal Opens!

so i have to add a modal in a tab since the tab is too cluttered i want to achieve two things: 1.open a modal without the tab closing 2.introduce a list in the current tab of the products attached ...

Refresh widget method `getOptions()` after filtering

I posted this on Github last week, but haven't had any response: https://github.com/filamentphp/filament/discussions/16111 I have filters on my Chart Widget like this: ```php...

Place a component next to the title.

Is there any way to add a component (customized or not) to the right side of a EditResource title? A TextInput or even a custom component.
Solution:
You may use something called Render Hooks: https://filamentphp.com/docs/3.x/support/render-hooks I haven't used what you're asking for but I think its: PAGE_HEADER_ACTIONS_AFTER. You may play around with the hooks to see which one fits your requirement. ...
No description

SpatieMediaLibraryFileUpload Uploaded Images Grid

I have uploaded some images. Now, my question is: is it possible to display the images in 3 columns instead of full width?
Solution:
->panelLayout('grid')
No description

Adding a Group Action in a section header

Hello everyone! 👋 I'm trying to find a good way to add a Group action to an Infolist Section component — in the header area. From what I can tell, there isn’t a built-in Form/Infolist GroupAction component yet, but I was wondering if anyone has found a creative solution or workaround using the current version of Filament....

Filament overriding withCount ?

Hi everyone ! I'm currently trying to add a "tickets_count" attribute on a "users" relationship to use it with AND without Filament. So my relationship looks like this: ```php public function users() { return $this->hasManyDeep(...

Display Cards under Select

Within a Wizard I'm trying to display the selected items in a custom card but I keep getting Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization, how do I solve this? This is Laravel 12 with Filament 3.x. My code is too long to include in this message I can share it in the comments....

Update Button Text Color

I can see in the docs how to update the button's background color, but it doesn't say how to change the text color.

ListCategoryPage stuck on Product model instead of Category

I’m hitting a snag: in my ProductResource the default pages (ListProduct, EditProduct, CreateProduct) work fine. I added a new ListCategoryPage to show ProductCategory under the same resource, but it still uses the Product model and lists products instead of categories. I’ve tried tweaking getModel(), mount(), even registered the page in the Resource correctly, but nothing makes it use ProductCategory. Anyone run into this or know if you can have a page with a different model inside a Resource?...
Solution:
I created a new resource and hid it from the navigation menu. It wasn't what I wanted but I had no other way.

Problem when try to reset password in production

Hey guys i have problem when i try to send the reset password email, i have the same configuration in .env production and local... i mean the same configuration for email configuration, smtp, password, username, etc... Now when i send the email password in local, i receive the email, if you see the screenshot, the message say (We have emailed your password reset link) but when i send the email reset password in production i have problems, the message is other (password.sent) and i have an error in the log. do you have any idea about this problem? ...
No description

Implementing tabs that changes the whole page

How do I implement a tab that will change the whole page and set the url? The current setup of that is that you can click multiple tabs without affecting the url. In my case I have a lots of tabs and some tabs contains tables and I don't want the page to load all the contents of those tabs in one go as it will severely affect the resource and performance on the server. ...

Upload image from table

Hi there! Has anyone ever tried uploading images from a table using ImageColumn? I mean being able to upload an avatar, for example, by clicking on an ImageColumn or something similar....

could we send notification from clientside

I want to implement notification via clientside without rerendering