Filament

F

Filament

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

Join

v4 RichEditor: can we make it a good experience for editing A4 paper size documents?

Hey there, v4 is amazing! I'm using it to build a contracts templating system. As you might know, this is normally done editing A4 paper size and I would really love to use the native RichEditor here, with it's awesome functionalities like the merge tags and blocks, but I'd like for it to at least have a feel of a tool like MS Word or TinyMCE etc. Catch is, I need a free alternative here, which I believe ain't the case for TinyMCE. This could really just prove to be a CSS thing maybe?And could even turn out as a Plugin for the native rich editor and I'd love to contribute on that if it is indeed the case....

Nested resources & policies

Hello folks! What a wonderful framework! I'm quite new to Filament so I'm sorry if this has been asked before, I've read the documentation dozens of times and done my due diligence on Google as well as asking the lying machines, I can't figure this out....

RichEditor: Dynamic mergeTags based on other fields value

I am building simple email templating, and want mergeTags to be dynamic based on other fields value. When I select entities field, the mergeTags should have now have value based on the entity selected. but mergeTags, still the same with initial value even after form update....

fileAttachmentsAcceptedFileTypes and fileAttachmentsMaxSize methods don't exist

Hello, currently I am building a article CRUD using Filament 4. I already follow this documentation, but I have this error. https://filamentphp.com/docs/4.x/forms/rich-editor#validating-uploaded-images ...
No description

Hi

Is it possible to have a Filament v4 StatsOverview Widget that contains a bar chart instead of line chart?

Database notifications working locally, on production not

Hello guys, I'm new to Filament and just trying it out. I've deployed my Filament app via Laravel Cloud I'm gonna upload the image. The notification on the left side works normally on local and on production, the notification on the right works normally on local, but on production not. ...
No description

Define a Custom 3xl Breakpoint for very wide screens

In my theme.css file I have the following: ```css @import '../../../../vendor/filament/filament/resources/css/theme.css'; @source '../../../../app/Filament/*/';...

ChartJS DataLabels doesn't show

https://filamentphp.com/docs/3.x/widgets/charts how to use this custom Chart.js i tried to follow this but it doesnt work to me how to use this?...
No description

Issue with using an InfoList with Actions inside a modal action with custom modal content

So in my Filament 4 App I have a page with an action that opens a modal. The contents of the modal are rather unique and custom, so I am using modalContent() where I am passing a blade View and some actions from registerModalActions. Now inside that Blade view for the modal I also need an InfoList. So i created a custom Livewire Component that renders that Infolist. This works perfectly. However, the InfoList also contains some Hint Actions for some of the fields. When I try to trigger these actions I get this error: Unable to call component method. Public method [mountAction] not found on component Can anyone tell me what I need to adjust? It seems like this structure (Action > Modal > Blade View > Livewire Component > Infolist > Hint Action) seems a bit too complex for Filament 4? The thing is that all of this worked when I was still on Filament 3 with my app. So I am sure there must be a trick that I am missing to get this working in v4?...

Add button at group level

Is there a way in filament, to add a button at group level, rather than record level? For example, something like this (See screenshot).. Note: That is an edited image....
No description

using /{authSlug} instead of /{path}/{authSlug}

I have a site that basically has a front end that lets users access and interact with limited details after they have logged into the site. I then use filamentphp for the backend because it makes building a backend super quick and easy. the problem I have is this, when the user logins they have to go to /{path}/login instead of just doing something like /login...

HELP! Duplicated Notifications in Filament

Does anyone here know if Filament has a feature to prevent duplicate notifications? Example of the problem: an alert was sent to a user, but the system sends the same alert again. I’m following the documentation for Database notifications: https://filamentphp.com/docs/4.x/notifications/database-notifications...
No description

Dynamic selectablePlaceholder closure does not have the desired effect

I have a select field, that I want to not show the selectablePlaceholder "x" icon, on specific conditions, which depend on the state of other fields in my form. When I use ->selectablePlaceholder(false) , the "x" icon is removed as expected, but when I use this: ```php ->selectablePlaceholder(function (Get $get, ?string $state) {...

Adding a custom modalWidth

Hello everyone, I'm trying to add a custom modalWidth to my project, using the customization from Tailwind. According to the Filament documentation, there are only xs to full screen available (see: https://filamentphp.com/docs/4.x/actions/modals#changing-the-modal-width). 7xl (80rem) is too small and full screen is too wide. I'm looking for a max-width of 120rem (1920px)....
Solution:
Nevermind, thanks to a colleague of mine I was able to add this in the theme.css:
.max-w-8xl {
@apply max-w-[120rem];
}
.max-w-8xl {
@apply max-w-[120rem];
}
...

Make it look like I am on a different Page in the navigation

I have the page /vet-profiles (Filament/Pages/VetProfiles.php) showing in my navigation. I also have the page -/vet-profile (Filament/Pages/VetProfile.php). I do not show this page in my navigation. When I am on the Vet Profile page, I want the Vet Profiles navigation item to be highlighted as if I am on it....
Solution:
I got it working. On VetProfiles I added: ``` public static function getNavigationItems(array $urlParameters = []): array { return [...

Multi tenant system requires different config for different panels

So i'm relatively new and might be making a basic mistake but here's the scenario i'm facing: 1. we have a multi-tenant system implemented using Tenancy For Laravel (https://tenancyforlaravel.com/) with Filament Shield for RBAC. 2. We have a central panel called /platform which has CentralUser as the main auth model 3. another panel called tenant which has User as the main auth model. ...

Tenant menu item on collapsed sidebar

So, when i collapse my sidebar, the tenant menu on topbar, only shows icon, i stil want it to show the text i have on desktop "Company:" then "Company name" , right now, it removes the labels when i collapse my sidebar, im trying to figure out where this is in the code so i can change it? Any ideas?

V4 wire:click and wire:change not fire in ->extraAttributes

after upgrade V3 project to V4 wire:click and wire:change not firing in many places ``` protected function getCreateFormAction(): Action { return parent::getCreateFormAction() ...

Move "Reset" filter button, next to "Apply filters"

I have applied the following attributes to the table:
->filtersLayout(FiltersLayout::AboveContent)
->deferFilters()
->filtersLayout(FiltersLayout::AboveContent)
->deferFilters()
This shows the filter above the table, and a "Apply filters" button (See screenshot attached)....
No description

Connection set on morphed model

Any idea how do i setup my relations so that eloquent respects my $connection set on model ? in my Order.php i have ```php...