Filament

F

Filament

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

Join

Integration with supbase/appwrite

Hello I was wondering how can I achieve the above ?

Using slideOver() inside Livewire Component

Hello! i have a filament-page with some livewire components on it. One of them is a LwC with a form....

Modify Query Using with Live

Guys, I’m having an issue: my payment methods are coming up empty. The query is correct, but it simply doesn’t update the SELECT. I’m updating based on the first SELECT. Does anyone know what might be causing this?
Solution:
I did some tests and so was the only way I could make it work
No description

Apex Widgets not showing?

I wanted to add some Apex Widgets, after installing it, i created the widget file, i called the FilamentApexChartsPlugin on the AdminPanelProvider, and then i called it on the blade file i need, but for some reason, they all come up as empty.
No description

Handling Eloquent Query Builder Serialization Securely Between Components

I'm building a Kanban board package with Filament and Livewire. My architecture has a Filament Page that creates an Eloquent query builder which is passed to a Kanban adapter, and then the adapter is passed to a Livewire component. However, I'm hitting both serialization and security roadblocks: when Livewire attempts to hydrate/dehydrate the component state, it can't serialize the Eloquent query builder inside my adapter. Additionally, I'm concerned about securely handling database queries across component boundaries. ```php...

Making searches universally case insensitive for Postgres

I'm using Postgres, is there a recommended strategy for making searches in string columns case insensitive without having to write dozens of search callbacks for the searchable() method?

add confirmation to submit / call requiresConfirmation() on StaticAction

Is there any way to show a confirmation modal on submit of any form modal form? i have a custom bulk action and i want the submit button to show a confirmation prompt.

Override makeUserCommand in vendor folder

I have made a custom user model that does not hold the email or name of the user, these fields are stored in a seperate table that contains more information on the user. I have created a new login and changed the authIdentifiers to make use of username, however I would like the command:
php artisan make:filament-user
php artisan make:filament-user
to make use of the username and simply ask for the username and the password for easy user creation....
Solution:
After posting this I came to that conclusion, I wasn't aware you could override a command by makign a new one with the same signature. Thanks...

After login on the second panel (without multi-tenancy) returns a 404, while everything else works

I have one panel that uses multi-tenancy and another that doesn't. I didn’t change anything on the second panel, but it returns a 404 after login, even though everything else works correctly

Additional actions in wizard step

Hi all, Does anybody know how I can add an additional action into a step within a Wizard? I'd like to add an additional button at the end of my wizard, I've mocked it up in the attached screenshot. Thanks!...
No description

(default) Lazy loading breaks table widget.

I am trying to make a dashboard for a client including page filters. The default for TableWidget's is that lazy is true. This breaks my widget and returns the following error:...

Plugin development - Filament Json Column

Hi, currently working on a new version for a Filament plugin. I want to stop form submission if the state provided is improper. The plugin is a JSON viewer/editor, so I'm trying to parse the state. Here's the code. ``` protected function setUp(): void { parent::setUp();...

Storing multiple filenames at once when uploading multiple files

I'm trying to save multiple attachements at once and store their filenames also, so as docs say I use https://filamentphp.com/docs/3.x/forms/fields/file-upload#storing-original-file-names-independently and on my model protected $casts = [ 'filename' => 'array', ];...
No description

Chevron arrow in textInput

I have created a modal action in filament.Whose code is. ``` public static function modifyClockOutAction(): Action {...
No description

Customize email verification route

How can i customize email verification route instead of slug only?
Solution:
create a custom EmailVerificationclass that extends the default one and pass it to the ->emailVerification(CustomEmailVerification::class)

Are anonymous functions evaluated before ->assertFormField*?

The user being tested does not have permissions to edit $testUser's email. It works correctly via front end. If ->disabled() is set without the anonymous function the test passes. But with the anonymous function it always fails. I am assuming that the test is ran before the anonymous function executes, or am I doing something wrong. Test:...

Relationship manager modal not opening

Hi all, I've got a relationship manager which does not open the modal when I try to add a new or existing relationship. There are no JS errors, and the livewire equest/response look OK, as attached. The app works in local, not in production. I've done artisan optimize, rebuild npm, restarted octane....
Solution:
Still nothing obvious. Went for the "big red button" approach: rm -rf vendor && composer install. That fixed it. Coding is 50% intelligence. 50% copy-pasting. And 50%: "Huh. Didn't think that would work"...
No description

Why are Users manually logged in in ExportCsv queued jobs?

We have recently run into an issue where what appeared to be session data leaking into queue jobs. In the process of debugging that issue, we found some logic that manually logs users in when a CSV export is being processed in a queue: https://github.com/filamentphp/filament/blob/a2a80f634c8ea2d9121443de9a27788218d7f41c/packages/actions/src/Exports/Jobs/ExportCsv.php#L68-L72. I am curious the reasoning behind this and why there isn't corresponding logout logic at the end of the handler. When a...

Test for current route (or query params)

I have a tab in ListUsers::class that only a Super Admin can see. If an Admin tries to view the route by directly putting it into the url, it correctly returns the first tab. This seems to be default behavior of Filament and is what I desire. Since it is not a redirect, and is the same component, I am having a hard time finding out how to correctly test that the url actually returned is ListUsers::class [activeTab=all] or admin/users?activeTab=all. Getting the current URL or Route returns a Livewire Testing Endpoint. Any help is appreciated....

Default Resource Index instead of Dashboard for Panel?

Is it possible to set the an index of a resource to the default index of a panel versus setting a custom page/dashboard? Im probably just missing something simple here.