Filament

F

Filament

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

Join

When Uploading filed I get Error livewire/upload-file

The GET method is not supported for route livewire/upload-file. Supported methods: POST.
No description

How to position Action Group at the top-right corner of a grid column?

I need the ellipsis menu (actions dropdown) in a table to appear at the top-right corner of a grid style column.
No description

conditionally required validation

This doesn't seem to be working: ```php Select::make('time_entry_category_id') ->required(fn() => !$this->isRunning)...

automatically toggle switch

I want when one toggle is active and if i active another toggle automaticly prev toggle should be go false like i want only one active toggle
No description

Remove filament from the project

I want to remove filament completely from the project. How do I remove it without affecting my other files in the project? Do I have to delete the whole project and restart it or what?

How to Make CreateAction Display as a Modal in FilamentPHP

Hi everyone, I'm trying to set up CreateAction in a ListRecords page so that it appears as a modal, but the form doesn't pop up in a modal as expected. Here’s my code:...

Change position of hintIcon

By default, the hintIcon appears at the end of the field, how can I move it next to the field label instead?
No description

Save form from a header action

Is it possible to save a form from a header action (or before a header action? Let's say I have the following header actions in an edit form ```php...
Solution:
Oh okay, you can do something like this: ```php Action::make('doSomething') ->action(function($record, $data) {...

Get $get helper

Is there a way we can programmatically create this hierarchy on $get from repeaters esp. on nested o
No description

How can I reduce the excess white space when using the Cluster feature ?

'm using the Cluster feature in FilamentPHP and noticed excess white space on both sides. Are there built-in solutions or CSS strategies to better utilize this space?
Solution:
I think Cluster has nothing to do with here, maybe you didn't set the max content https://filamentphp.com/docs/3.x/panels/configuration#customizing-the-maximum-content-width

Is sortable() and/or searchable() possible on a HasOneThrough relation?

I don't think I have asked this before... But it is a hard one. The setup: - One Staff can have many positions....

Is it possible to test broadcast notifications?

I'm currently using reverb to broadcast notifications, everything is working fine and the notifications are coming through. I'd like to run some tests to ensure this is always the case but I can't seem to get assertNotified to return true while using toBroadcast(). If I switch it back to send() the notification test passes (which a few other small changes - eg. removing notification from notify() function.) I'm triggering the notification like this: ```...

form schema modify

Hello guys $testField = TextInput::make('first_name') ->maxLength('64')...

Help with dependable select

I've a dependable select 'province' that depends on the select 'country', both of the inputs are nested within a repeater. the problem is with the province select, as you can see in the code, if i set the fallback return value for options to
`['' => '']
`['' => '']
` it works as expected (but it leave an extra padding space under the placeholder) but if i simply return an empty array, the select wouldn't react or change when i change the country, can anyone explain please? here's the code;...

Help with Filament Modal Component

I'm using the Filament modal to open a chatbot interface defined in a custom Livewire component. I would like to scroll to the bottom of the chat interface when the modal is open. I was using the model-opened event to scroll to the bottom, but it's not working as I expected. It seems that modalElement.scrollHeight is set to 0, and even if I hardcode a position in the scrollTo method, it doesn't take effect. It feels like I might have the wrong element. Does anyone have recommendations or solutions on how I can resolve this? ```<x-filament::modal width="lg" heading="Chatbot"...

Spatie media thumbnail

Thumbnail is not saved on S3 conversions folder.
No description

Chunked uploads

Hi, I want to upload large files 1 GB+ using Filament's file upload form field but it does not support it. Is there any way to achieve this?

Keybind to trigger 'save and create another'

Is there any such functions to add a specific keybind to trigger this, or would I have to publish filament and add the js directly?

Make custom form like GForm

Hello, I have a new project to make a custom form like GForm where the user tenant can create custom forms themselves. So the custom forms will made and appear on the front page and filled by the guest.
Is that possible in filament? Do you have any suggestions? Thank you and have a nice day!...

infolist with livewire

Hello all, I have livewire component that show list of members and I have Viewaction that show member details in infolist, I pass the $record from livewire to MemberForm class correctly (I try dd($record) and show corret data ) but inside infolist it didn't show anything....
Solution:
```php ViewAction::make() ->infolist([ TextEntry::make('type'), ......
No description