Filament

F

Filament

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

Join

Repeater with Spatie Media Library

Has anyone implemented repeaters, that include Spatie Media Library inputs? I found some posts from 2023 and older with no real solutions - is there a better approach nowadays? I've managed to add a hidden field in customProperties, but I can't figure out how to properly configure filterMediaUsing to show the correct image (without it, it shows the first repeater block one as expected) ...

SIGSEGV when testing Livewire component using Filament custom components

Hi everyone, I’m running into a strange crash when testing (Pest) a Livewire component that uses Filament custom components. Here’s a minimal example: ...

Trouble with the Wizard

This may be more of a Livewire, but maybe someone here can point me in the right direction. I am trying to use Stripe Elements on the second step of a Wizard. But when you click Next to get to step 2, the component gets re-rendered, and some Javascript needs to run again to reinitialize the Stripe elements. From the Stripe docs, I register their script and put the necessary JS code in a method called initElements which lives in the stripe-elements.js file. I am able to manually run the initElements method from the console, and then the Stripe Elements do appear. I'm wondering:...

Redirects when using tenantDomain

Seems when you have the tenantDomain setup - it still tries to redirect to the slug provided instead of the domain... For example the "logo" link at the top - it adds the slug to the existing URL string even though im using a domain name. ```php...

Not Filament related need help

Hi, I have AWS SES creds but I cannot make it work. Been working this days ago. Can you please show me you .env config? Below is mine ``` MAIL_MAILER=smtp MAIL_FROM_ADDRESS=verified@domain.com...

Issue displaying & editing pivot field (role) in multi-tenant UserResource

Hi, I’m working on a multi-tenant Laravel Filament app with companies and users in a many-to-many relationship. The pivot table is company_user and contains a role field. I’ve set up my UserResource like this: protected static ?string $tenantOwnershipRelationshipName = 'companies';...

[Filament V4] Custom page action not executing

Hi everyone, I'm currently migrating my app to Filament V4 and I've encountered an issue when trying to add actions to a custom simple page. In V3, I could define an action in the page class and render it in the Blade file like this: {{ $this->myAction }}, and it worked as expected. I'm trying to replicate that behavior in V4, but the action doesn't seem to execute properly when clicked....
Solution:
I got it to work, apparently, it only functions correctly if you explicitly specify the return type as : Action.

How do I add another button on Resource page?

I wanted to add another button called "Form Settings" beside the "New Form" is it possible in filament? If so how do I approach this problem? So when I click on I get redirected to another page. ...
Solution:
```php protected function getHeaderActions(): array { return [ Actions\Action::make('formSetting')...
No description

assertTableActionDoesNotExist has no assertions

I have a simple test: ```php it('cannot see delete action when status is in_progress', function (): void { $record = Order::factory() ->inProgress()...

Control <p> wrapper element in RichEditor

What i'm trying to do have rich text content with bold and italic inside a heading What I'm doing I'm adding a RichEditor and selecting the desired options (bold, italic) in the toolbar. ...

Globally set records per page for table listings

Hi, does anyone know if it's possible to globally set the number of items shown per table listing? Currently it defaults to 10. I found some references to default_records_per_page but have not be able to get it working, not sure it's possible. I want to globally change records per table to 100.
Solution:
Table::configureUsing(function (Table $table): void {
$table->defaultPaginationPageOption(50);
});
Table::configureUsing(function (Table $table): void {
$table->defaultPaginationPageOption(50);
});
...

CORS Filepond fileupload

I am at my wits end having spent the entire day on this now. When I upload a file using simple disk command everything works fine: .env: ``` APP_URL='http://front.demo.localhost' SESSION_DOMAIN='.demo.localhost'...
Solution:
For anyone that finds this thread - here is the aws cors config: ``` [ { "AllowedHeaders": [...

Profile data from user resource create/update

Hi guys, I have an issue. I have User resource with some fields like name, lastname, address, email and etc. And form structure if separated in tabs, like General information (mandatory fields) and then other tabs, like shipping addess, description and etc, that are optional. Some of data must go to profile table. Issue is that if all profile fields are not wrapped up in a single fieldset or etc, then only first fieldset data is passed to profile relationship and other is not. How do you handle...

Repeater Inside Repeater

When I tried to create a repeater inside a repeater, It shows an error of Indirect modification of the overloaded element of Illuminate\Support\Collection has no effect ...
No description

The POST method is not supported for route login

I am working on a laravel filament project but after i hit login this error shows up and i am not able to find the reason behind it , I do not have any clue about it The project has default filament authentication laravel version : 12.0 filament version : 3.0...

Modal with table won't trigger actions

I am trying to open a modal via a headerAction on a table that is opened in a modal from withtin a custom livewire component. The Field aanmaken button should open a modal, but does nothing except sending an update request. Also the reorder button doesn't work....
No description

how to mass show or hide toggleable table columns

how to mass show or hide toggleable table columns

Loader Indicator On Create Another Button

Hi, I have an issue here when doing extraFooterActions ```...

ImportCompleted event not triggering.

Hello. I've got a question. How could I manage an import when there are no rows in a CSV file?. I'm relying on "ImportCompleted" event in order to do some processes when the import is completed. Unfortunatelly i've noticed that uploading an empty CSV (headers only), the event is not called.

Making Conditional Dropdown

I'm making a form to make a user, here I want to give the condition if the role is not the head of the study program, the study program dropdown is hidden. how do you do it? Maybe anyone knows Oh yes, the roles is taken from the shield and I have set the access rights Thank You 🙏...
No description