Filament

F

Filament

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

Join

Plugin Upgrade script

Is there a plugin upgrade script, or do I have to do it manually? (v3 -> v4)
Solution:
There is no update script for plugins

FileUpload registerListeners function

I have searched discord, and also tried to decipher the source code but to no avail. I am trying to use registerListeners on FileUpload component. I am trying to do something on filepond upload, however using the window.FilePone.find(element) does not find the instance as per filepond documentation. If I understand correctly, the method takes an array of associative closures with names, and those events can be listened to on my blade view....

"Custom blocks" that aren't... blocks?

What I'm trying to do: I want users of a RichEditor to be able to insert a tag (much like a mergeTag) that accepts parameters (like a customBlock), which is replaced at runtime with a hyperlink generated by a backend method accepting those parameters. What I did: I created a new RichContentCustomBlock subclass and implemented the required methods. When rendering content, I use
RichContentManager::make($my_content)->customBlocks(...)->render()
RichContentManager::make($my_content)->customBlocks(...)->render()
to "expand" the blocks. My issue: No mater what I return from toHtml, the blocks are always enclosed in <p> tags, which prevents the expanded hyperlinks from seamlessly embedding into my page content....

Testing view page in nested resource

Did someone already testing the nested resource? So I have this structure, Parent -> Child, i want to testing the view page ```php Livewire::test(ViewSomePage::class, [ 'parentRecord' => $parentRecord,...
No description

Database notification for a different model

Hi, My notifiable trait is on a different model than User (Seller)... How can i instruct my livewire database-notifications-modal to fetch for my Seller model and not the user ? I can't put the trait on my user because all my sellers doesn't have an account, they are external....

Add a custom JS function for a custom field.

Filament 4 introduces new JavaScript-based methods like visibleJs() that allow direct interaction with components via JavaScript. How can I add a custom method like customJs()? Specifically, how can I inject my own JavaScript into a Blade component so that it has access to Filament's injected helpers like $get, $set, and $state?...

sub navigation position not working

I've set the SubNavigationPosition to be at the End, but its stuck on top ```php protected static SubNavigationPosition $subNavigationPosition = SubNavigationPosition::End; ...
No description

issue with repeater and relationship

hey, i have a simple form with simple logic to submit protected function handleRecordCreation(array $data): Model { ...

can we entangle state form field into livewire component.

custom-field-filament.blade.php
<livewire:custom-component wire:model="{{$getStatePath()}}"/>
<livewire:custom-component wire:model="{{$getStatePath()}}"/>
...

Custom CSS for ViewColumn

I have a pre-minified CSS stylesheet that I want to use specifically to style a custom ViewColumn. This is not changing the overall Filament theme for the panel, it just provides some formatting for the custom view within the ViewColumn. What is the best way to include this in my app?...

how to upgrade to beta version?

I am using 3.2 version and wanna upgrade to beta v4 for speed performance issues

TextInput url too few parameters

In the documentation the ->url() has no parameters, and I can't see anything about it. However, it seems that it needs to have at least 1 parameter that can be either closure, null or a string. Where can I find the full documentation for the TextInput file, or in general. Sometimes I feel there are missing parts. I am not complaining, because Filament is incredible, but if there's a hidden section with full api reference, would appreciate being pointed to it 🙂...

Place date picker filter on table header actions

Hi, Anyone know, how to place an date picker on the table header near by that select (marked in red)? Thanks in advance.
No description

Multiple Layout Components with same Relationship

I'm trying to use multiple layout components with the same relationship. It is not feaible to put all fields in the same layout since they are in different tabs. If I use seperate layout components with the same relationship, their statepaths overwrite each other. What should I do? Thanks!

Property [$infolist] not found on component

I'm encountering an error: Property [$infolist] not found on component: [app.filament.admin.resources.campaign-resource.widgets.campaign-details-widget]. I updated the view path to ...pages..., but the error still references the ...widgets... view. My code: ```php class CampaignDetailsWidget extends Widget implements HasInfolists...

Frozen Resource and EditPage in iPhone Safari and Chrome

Hello, I am having constant freeze page issues on my Resource and EditPage on iPhone Safari and Chrome. The screen works good and it freezes when I switch to another app and come back to it. Everything is frozen/locked including buttons and scrolling, even text is not copyable. Please let me know if anyone else has faced this issue and how did you solve it?...
Solution:
@awcodes exactly what I thought when my client mentioned it. But it turns out the problem is only with his device, we tried with different iPhones on Safari and Chrome and it all worked good. We are still trying to figure out what is really wrong with his device....

Am I correct in understanding `Form->disabled()` is not really 'officially' supported?

I noticed when using this, it correctly disables all the form fields. However, it also still allows submitting, does not hide the submit, and even pops up Saved notifications. That is undesirable behaviour, but I realized after researching this further, the documentation doesn't document disabling entire forms. However, the Form supports it and uses CanBeDisabled which suggests maybe it was intended to be used? Note I am working around this now by overriding getFormActions() which works well enough, but was confused about this behaviour so curious if it's a bug or just not officially supported....
Solution:
The actions are probably separate from the form (they are on the Page) so disabling the form has no effect on them

Tables\Columns\SelectColumn

I desperately need a way to use the SelectColumn with Ajax searching I can't use a pre filled options Any idea for this?...

Redirect to list page with action to open edit SlideOver

Hi I am doing custom redirection to other resource list page, but when I do redirect to other resource list page I have to open edit slideover with ceratin record id in it? Is it possible?...
Solution:
yes: tableAction=edit&tableActionRecord=xx take a look at this example https://demo.filamentphp.com/blog/authors?tableAction=edit&tableActionRecord=1...