Filament

F

Filament

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

Join

How to add all tailwindcss to custom theme?

Need add all tailwindcss classes to my filamentphp project. Any help?

ExtraModalFooterAction does nothing

Hi, I'm trying to render an extra action for the editOptionModal: ```php ->editOptionAction(fn (Forms\Components\Actions\Action $action) => $action->extraModalFooterActions(fn (Action $action): array => [ \Filament\Actions\Action::make('something')...

How can I get the state of text written inside the select search bar?

In the picture, type to search. I want the state of the written text inside of the search bar. Can anyone help me with that?
No description

Actions\Action not calling the action method when combined with form

I'm trying to create a custom form that executes a custom action after submitting but the method action is never called. ```php use Filament\Actions; use Filament\Forms;...
No description

How to use CreateAction for a resource in an unrelated resources table headerActions?

I have recently experimented with adding a CreateAction to a resource tables headerActions, but this fails as I get the error:
Method Filament\Actions\CreateAction::table does not exist.
Method Filament\Actions\CreateAction::table does not exist.
But I was able to add my CreateAction to the ListResource pages getHeaderActions() method, like so:...

select items render html

I want to add color to select items i have make this but it displays the css as text and the html() is not define for select this is my code. Any Ideas?? Select::make('leads_status_id') ->label(__('labels.status')) ->relationship('status', 'name', fn ($query) => $query->orderBy('sort_order')) ->preload()...

How to add Highchart in a custom widget

Hi, I need help. I've been trying to incorporate a custom widget that renders a HighChart map, however, it doesn't work for me. Register the cdn in the AppServiceProvider boot: ` public function boot(): void...
No description

Create Repeater Data on handleRecordCreation

Is there a way to create datas from Repeater on handleRecordCreation. Here's the case, I need to create a BuyingInvoice and BuyingInvoiceItem (it comes from the Repeater so there'll be some BuyingInvoiceItem ) on handleRecordCreation. Because I need to the id from the created BuyingInvoice and BuyingInvoiceItem s to create a StockUpdate that have the foreignId of BuyingInvoice and BuyingInvoiceItems Here's one of the BuyingInvoiceItem's data array ```[ "item_id" => "1",...

🌐 How to Set Up Dynamic Subdomains for Filament Panels?

Hi all! πŸ‘‹ I'm trying to set up dynamic subdomains in Filament, like this: - store1.site.test ➑️ loads user panel for store1...

Replace section container in Split

People, is it possible to not use SECTION to start its containers in Split? Or to completely remove the border and padding from Section in this case? Thanks
Solution:
Add your own, and write some custom css..

Loading indicator on record change

Is there a way to show a loading view when I load a diffrent id. Like when i change from: https://demo.filamentphp.com/shop/orders/1/edit to https://demo.filamentphp.com/shop/orders/2/edit and it takes more than 1 sec I want to show a "Please wait while data is loading" and a spinner. Thank you in advance!...

Uploading multiple images and post-processing

Hi heroes, am having trouble getting this upload to save correctly - I have a form that allows for multiple file uploads (images) for a photo gallery. I've figured out how to handle the post-processing step with the afterStateUpdated() method, but when enumerating the files collection I'm having trouble resolving the filenames. heres' my snippet, can anyone provide some insight as to where I'm going wrong? I am new to filament, and want to use the same string for the filesystem filename and the "filename" field in my record. I think I am getting differing values due to teh livewire lifecycle and can't seem to get it straight....

Problem with the layout after the upgrade to 3.2.11

After upgrading to 3.2.11 today, I have these bugs in the admin panel. I commend the site viteTheme. The page is fixed, but I need that CSS for some tailwind classes
No description

the table action button does not retrieve the correct record

Hello everyone, I have a problem with my code. when I click on payment method action, the correct record is not always retrieved. that's only my probably. Here is my code: //Action de paiement...

ExportAction with dynamic exporter name based on the current row model value

I don't know if it is possible but i have a feeling it is i have a custom list table with export action and for each row, i have different custom exporter defined. My problem is that ->exporter(<string>), takes only a string. The real issue is how to get the current value when the table is built so that i could build the correct exporter name....

Can I use custom, non-boolean values for a form toggle?

Is there an easy way to set up a toggle in Filament where the values are custom (e.g., β€œValue A” and β€œValue B” as strings) instead of the standard true/false? Or would this require handling state transformations at the resource level? I’d appreciate any advice on the cleanest approach to achieve this.

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