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 center filter modal footer?

I am using the filter modal and wondering how to center the footer buttons:
Solution:
.fi-ta-filters-modal .fi-modal-footer-actions {justify-content: center}
.fi-ta-filters-modal .fi-modal-footer-actions {justify-content: center}
...
No description

Order of the files in File Upload is not honored

The File Upload field in the Filament Form Builder does not preserve the order of files. Instead of maintaining the order in which the images are arranged in the gallery, the final order appears to be based on the upload completion time. Since files are uploaded in batches of two, the images that finish uploading first appear first in the final order once the form is saved. This issue occurs when the user clicks the Save button. Visually, the user sees the images in a specific order before saving, but after saving, the order changes, causing confusion. This is how i have the Form Field. Did I miss some attribute like preserveFileOrder or something like that? I can't seem to find what I'm doing wrong....
Solution:
I just saw there's already an open issue for this bug, so I don't think this post makes much sense in the help forum anymore. Sorry for not checking that earlier—I thought it was a config issue on my end. Thanks for the help, @toeknee . We'll set MaxParallelUpload to 1 for now and I'll check if I can contribute with a PR. https://github.com/filamentphp/filament/issues/15308 Edit:...

Passing check boxes value data to controller from modal

I have a resource with a button which opens a modal with custom view and multiple checkboxes. Now when I press a button on modal, I want to submit / pass checkboxes values to controller, but I can't seem to get it to work. I tried wrapping my view into form, tried alpine.js, tried pure javascript and creating custom livewire component, but nothing works. Any ideas or tutorials, because I can't seem to find one for this specific case? I'm not even sure what the best thing to use here would be and would like some help clearing things up. I get my data array, but I don't get any checkbox values, been stuck on this for a while now with no success....
No description

How to modify data before validation in simple(modal) resource

beforeValidate() is working on normal resource page, but it didn't work on simple(modal) resource i can't see dd() message after submit the form in the modal ```php...

Filament site show "This site can’t be reached"

Unable to view the filament site it show like This site can’t be reached. filamentphp.com took too long to respond.
No description

Filament::getCurrentPanel() always returns true

I am writing a policy to prevent the challenger from editing the duel once he has created it. Here is the controller code: ``` /** * Show the form for editing the specified resource. */...
Solution:
Since you’re not checking against the panelId anyway maybe Filament::isServing() works for you.

mohamedsabil83-tinyEditor Font Family?

Hello guys, has anyone tried adding custom font family in the toolbar reference to tinyEditor?

Cannot upload files to Laravel Cloud Bucket

I have an app where I am attempting to deploy a test environment to Laravel cloud. I have the app deployed and running, but the buckets do not appear to be working with the application. I have a public bucket setup so that it maps to filament uploads disk, the livewire tmp upload disk, and the application filesystem disks. However, when I attempt to upload a file using a Filament form and the FileUpload component, I just get a hanging "Uploading" status and the file never actually uploads. This is for the initial upload and not the actual submission of the form. The uploading works locally, on a non-laravel-cloud environment, and in production. The Bucket has public visibility. I am using a CreateAction with this components in the form:...
No description

Repeater with pivot table

Hi, I have a problem with a pivot table: `Forms\Components\Repeater::make('config') ->reactive() ->columnSpanFull()...

Managing editing fields

I have this form component for edit/create `public static function form(Form $form): Form { ...

Importing a livewire component with a fillament table inside makes all the form action's unresponsiv

I'm importing a livewire component inside a tab, and in it there is a fillament table, if i remove the table the save action of the parent record works for some reason... i've tried using the View::make from the layout but that doesn't work too, any ideias on why the table would be doing that? screenshot of the livewire component .php...
No description

Find plugins that help edit data directly on the table

Here's the translation of your request to English: "Find plugins that help edit data directly on the table, but not textInputColumn type, rather the type where you edit an entire row and then save it, and add a new row afterward for the user to input and save....

[BUG] Sign up for an account always appears visible

Hey! I'm using Filament for a project and I want to prevent users from registering. In my admin panel service, I only have ->login() and haven't included ->registration(), but the "Register" option still appears. I've tried running several commands to fix it, but the option is still there. I did: php artisan vendor:publish --tag=filament-config...

Livewire with Laravel Filament Forms Usage: FileUpload Error

Hello everyone, I’m creating a user registration form with Laravel Filament Forms and Livewire. In this form, I am using FileUpload to get the user's avatar. However, when I upload the avatar, it gives a required error, and I am unable to proceed to the next steps of the form. In the console, there are some errors related to Alpine, as shown in the picture. Can anyone help with this?...
No description

private image with TenancyForLaravel

Guys, I have a multi-tenant program. I use tenancyforlarav. Of course, I upload the files to the public disk and there is no problem. This is considered a violation because once you get the link, you can access the file. I tried to switch to the private disk, but I couldn't. It is true that the files are saved there, but they are no longer displayed in the form. Can anyone help me solve this problem, Thanks. storage/...
No description

How can I send an email after creating a user in the Filament admin panel?

How can I automatically send a verification email when a user is created in Filament? How do I trigger an email notification when a new user is added via Filament? How can I send a welcome email after user creation in Filament? How can I implement email verification in Filament when an admin creates a user?...
Solution:
I have done with `protected function handleRecordCreation(array $data): Model { Mail::to($user->email)->send()); ...
No description

Form with Wizard not saving relations with non-default statePaths

I've got the following code: ```php class PlaceServiceForm extends Component implements HasForms { use InteractsWithForms;...

BulkAction not getting data from modal submit

I have a table of facture, my bulk action should open a modal displaying a table where user can select for each $row which one of the associated files whants to download. ```php BulkAction::make('Descargar Documentos') ->icon('heroicon-m-arrow-down')...

Adding tabs to resource not working

I have a simple resource that I generated with the cli command. I'm trying to have tabs for my table, but they aren't rendering? It looked weird to me at first since this method doesn't exist in the base Resource class: ```php...

How do I modify the query of a sub view page?

When creating subnavigation, how can I modify the resource query on a sub page? For example, if I am limiting the selected fields on my main resource in order to optimize my DB calls, but want to use ->addSelect() on an additional sub page. Resource ```php...