Filament

F

Filament

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

Join

Toggle buttons not working in form integrated in custom ViewRecord page

Hi, I have integrated a form in a custom ViewRecord blade template. The form is defined in the Resource as secondForm() and then integrated into the ViewRecord by defining the getForms() method in the ViewRecord class (e.g. UserResources/Pages/ViewUser.php). The form is rendered in the blade template via {{ $this->secondForm }}. This works in principle, but for every Toggle element used in the form I get the following console error: `Livewire Entangle Error: Livewire property ['d...

slow performance and 500 errors with large data

I've looked over older questions and just want to clarify if this is something to be optimized in v4? In my loadtest I have 20,000 users, and it returns a 500 error. And if I downset to around 15,000 users, the page will load but runs extremely slow. Is there anything available to optimize that I may be missing?...

Custom Table Name in RelationManager ?

Hey all, is there a way to change with table the relationmanager should query? Tried using the modifyQueryUsing, but it looks like it prefills that value......

How to upgrading filament to minor versions

I saw a tweet from our friend Dan, they released filament 3.2.115 fixing some bugs. Currently I have a project with 3.2.110 and I run:
composer require filament/upgrade:"^3.2" -W
composer require filament/upgrade:"^3.2" -W
and I several times got an error running the project with
php artisan serve
php artisan serve
...
No description

Is there a way to force a page refresh/reload on the user saving a record?

I have some post-processing to execute after an initial record is created and want to force a page-reload once the record is first created. I don't see anything in the documentation that addresses this - I'd prefer not having to coach the users to shift-R manually. Is there a best-practice for approaching this?...

Exporter Email Notification

Is there a recommended best practice approach to sending an email notification on successful completion of an export of data? I've been trawling through the docs but everything only points towards database notifications. I would like to send an email notification, ideally on creation of the database notification. I'm currently planning to create a custom event listener which listens for the global Illuminate\Notifications\Events\NotificationSent event and then interrogate the data of every event this captures to ensure it is the correct "export" event to trigger a custom email notification to send to the user, but this feels clunky and a bit of an anti-pattern. Any recommendations for how to handle this would be super appreciated! 🙏...

Delete Action Table Repeater.

Hi 👋 , I'm working on the table repeater's delete function, I want it to have a specific function if there is a record. In other words, in create have the default behavior of delete and in edit my custom function.

JavaScript Select Search Options

The JavaScript select control that Filament uses, Choices.js, uses Fuse.js for searching. The default options for Fuse only search the first 60 characters. If an option label has more the 60 characters, searching fails to find any results for that option. This default can be modified by setting fuseOptions on the Choices control. Does Filament have a way to set the fuseOptions on the Choices control? I poked around the repository and didn't see a way but figured I'd ask here. If not, can allowing these options to be set be added as a feature request?...

How to configure reverb with filament?

i want to be able to chat in admin panel. i installed laravel broadcasting and reverb I, following this tutorial https://laraveldaily.com/post/configure-laravel-reverb-filament-broadcasting, did:...

ToggleButtons are requiring a double-click to change their state

On Edit form i have this issue - ToggleButtons are requiring a double-click to change their state. On Create form it is Ok. What can cause this issue?...

Set Column with header action

How can i set a text column value by header action button? I try with $set, but it throws this error
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
Typed property Filament\Forms\Components\Component::$container must not be accessed before initialization
Thanks...
Solution:
maybe ```php ->action(function () { SendPostToCustomerAction::run($this->record); $this->refreshFormData(['status']);...

move table header action next to searchbar

Hi, I would like to display a headerAction inline with the table seachbar and the filters button. I don't want to publish assets just for this small tweak but I can't find anything in the documentation. So far my only solution was to rearange the elements with JS but this breaks some click references for that action. Any ideas are welcome First images is how I want it to look and second one is default one...
Solution:
Hi ! use a renderHook ! Especially the TableRenderHook like so: In you PanelProvider:...
No description

Help with Dashboard

Good day all i dont seem to find the dashboard views, can anyone assist ..

GreeterPlugin by orion doenst work in production mode

I have setup this plugin in adminprodiver inside plugins([]) example ```php GreeterPlugin::make()...
No description

Importer action inside relationship

I have a Importer Action inside a relationship. How to get owner inside importer to create items? Owner must be Tier2 Model and it must import on Tier2Details Model this is my importaction code ```php...
Solution:
pass in livewire and use $this->livewire->parentRecord or ownerRecord if memory serves me correct

Log search queries?

Is there any way i can log and save each search query on a resource list page, so we can track what users are searching the most

Tiptap editor wont add <br> or indent text

Hi guys, I have an issue with TipTap editor whenever i add "enter" to add <br> it wont add spacings between paragraphs. Do you have an idea what could it be? And also for indent text it wont recognize it...
No description

Unable to interact with last record of table, or the pagination when using large amounts of data.

I say "large" but current only have 69 records in the table. I can interact with the actions on every other record, except the last record. And I am unable to change the value of 'perPage' either. Any ideas?...

make all images clickable and display in full

currently my code is like this SpatieMediaLibraryImageEntry::make('product-image') ->collection('product-images') ->label(''), then I want this image to be clickable and it will appear in full in the infolist...

Two list records for same resource active nav

Hi, I have two list pages for the same resource: "List Invoices" and "List Proforma." Both pages function correctly, except for the active sidebar option. When I click on the "List Invoices" option, the sidebar correctly highlights it as active. However, when I click on the "List Proforma" option, the sidebar still incorrectly highlights the "List Invoices" option. How can I resolve this issue?...