Filament

F

Filament

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

Join

Livewire Entangle Error on RichText for a dynamic JSON field

I have a Tabs component, and within that I have an "Images" Tab. Within the images Tab, I am looping through several sections to set up images with alts and abstracts. ```php Section::make($this->getName())...

The code that works locally does not work in production

Hello, when I add the following code to my table, it always resets to the default state. It works fine locally, but in production, it always defaults. I am using the same database. Is there anyone who can help with solving this problem?...
Solution:
I tried everything. As a result, the problem was solved when I used it with intval($state)

Modal with custom view sortable javascript?

I have a page with a custom modal configured like so ``` $action = Action::make('order_item_process_steps') ->label('Process steps') ->modalContent(fn(OrderItem $item): View => view(...
Solution:
This is because livewire loads after the dom, you should load in the JS function into the app.js for example and then run the function. I.e. see https://livewire.laravel.com/docs/javascript...

spatie translatable on custom page

I have custom page for manage home page content like bellow, i want to make it support multilingual with filament-spatie-translatable without change it into resource, how to do it? ```php <?php ...

How to create multi-select field using <x-filament::input.select> tag (not using the Filament\Forms

I tried adding multiple attribute in <x-filament::input.select> but it looks like just the native select
No description

How to Fix "Uncaught ReferenceError: richEditorFormComponent is not defined" After Hosting?

Hi, does anyone know about this? Everything works fine on localhost, but when I deployed it, I got the error : "Uncaught ReferenceError: richEditorFormComponent is not defined at [Alpine] richEditorFormComponent({ state: $wire.$entangle('data.body', false), }) (eval at safeAsyncFunction...." I've tried upgrading Filament, running composer update, and other steps, but the RichEditor still doesn't work after deployment. Other components are working fine. Thanks...
Solution:
wow, anyway, i've successfully solved the issue. Thank you for responding to me beforešŸ™. I tried deleting the assets directly from the server and then ran php artisan filament:install --forms and php artisan livewire:publish --assets😁
pict after deploy

choose filament

Hello everyone, if I am using filament and the project I am working on uses microservice, is my choice correct? If I want to create a postman collection for the default method in the resource, can I?...

Cusromise the blog plugin (Fblog by Firefly IT)

Hello everyone i want to customize a fee fields in the blogs post section but I'm unable to do ut.Could anyone share how can i do that. i have tried overreiding the postresource class but it does not show.

custom input live debounce

How to add debounce feature to custom filament field ->live(debounce:500) By default it does work.....

Filament Repeater: How to Create Multiple Records from a Single Entry?

I'm running into an issue with Filament’s repeater field and could use some help. My Use Case: I have a repeater with two fields in each item: one field lets the user select an item (e.g., "Item A") and another field lets them specify a quantity (e.g., 3). My goal is that a single repeater item should ultimately create multiple related records. For example, if a user selects "Item A" with quantity 3, I want to create an array like this: ```php...

How do I completely hide this label from a list resource?

Hello, I am struggling to hide this highlighted label completely from one of my resources, I need all the space there is on the page for the table to appear as high as possible, so I need to hide that label as well. I have managed to hide the breadcrumbs but not being able to hide the label. Please let me know how do I do that?...
Solution:
There should be a class based on your resource name: .fi-resource-list-records-page.fi-resource-customers...
No description

Table/list in Modal

Hello everyone! Please tell me how I can add a table to a modal window? I need a field for entering a new card and below that a table/list of cards the user already has. P.s. I tried to draw the functionality on the screen šŸ™‚ ...
Solution:
Currently you can't out of the box. You have a form and you cannot nest a table inside. BUT, what you can do: Create a Livewire component with a form and a table. Render the table below the form. Then render that Livewire component inside your actions ->modalContent()...
No description

Possible bug: Wizard Step "afterValidation" Not being called

So I have a relationManager class where I modified the CreateAction to be a wizard. I have two steps 1st is Provider and then the 2nd is Ads. The Ads shows based on the choice from the first, but Im using the afterValidation function to manage that. While I'm local it triggers the function but on production it goes straight to step 2....

Set visibility of component based on current resource

I would like to put a list in a common area to share with the ArticleResource and ArticlesRelationManager (for users resource). Since this is to show articles for a specific user, I do not need the author column to be visible. I have searched here and in the Docs and I have not found anything with the terminology I was trying to search for. How can I set visibility based on the resource it is being used in similarly to how I have visibility based on $operation below?...
Solution:
Not sure why it didn't hit me sooner??
->visible(fn () => Route::is('filament.admin.resources.users.edit'))
->visible(fn () => Route::is('filament.admin.resources.users.edit'))
...

Form DatePicker add disabled dates to existing ones.

I've configure the AppServiceProvider to disable all the weekends on the DatePickers across all the application. But, I also need to add more disabled dates to the already configured. Any idea on how to do it? Is there any ->addDisabledDates?? Thanks in advance!! Juan...

How to add a dropdown and access the selected item in base query

I am using seperate schemas in Postgres with tenancyforlaravel. I want a dropdown to select the tenant, then I can view the table/create/edit etc... I want to switch to tenant db connection before query basically. ...
Solution:
I fixed it. Forgot to give error message and code. I override route function in every page like List etc, just add custom middleware that reads tenant param. ```php public static function route(string $path): PageRegistration...

testing performance

Hello, how can I test the application's performance? I'm interested in understanding how many simultaneous operations the application can handle can you recommend me one or more tools for this?...

How to use a Resource as the main dashboard page?

Hello, I had a BookingResource with List, Edit and Create pages which works good and the slug is /dashboard/bookings I wanted to use the BookingResource as a main Dashboard page with the slug / which is accessible using /dashboard But the issue is my client wants the edit page to be /dashboard/bookings/1/edit instead of /dashboard/1/edit and same for create page. Please let me know how do I achieve that?...

Someone who has experience with Laravel Cloud Object?

If someone has experience with Laravel Cloud Object Storage, please help me. I am encountering a CORS error with file upload using Filament and Spatie Media Library File Upload. Thank you.
Solution:
Laravel Cloud automatically sets the file system to public using FILESYSTEM_DISK=public. I believe it’s using S3, so I configured S3 in the Livewire config. That’s why I need to change public to s3 in the Livewire config. It’s a bit confusing, but thank you!
No description

Update rows in table (or table) after action on row

i have custom action to reorder categories in my plugin the db is updated but the ui/table not any idea? ``` ->actions([...