Filament

F

Filament

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

Join

Multy Tenancy

Hi, I’m facing an issue with multi-tenancy ownership on a Resource. [please check this picture] Tried Setting $tenantOwnershipRelationshipName = 'cooperative' works if I add a cooperative_id to saving_accounts, but I’d like to avoid schema changes....
No description

Weird style after tailwind update

I just tried the Filament upgrade from v3 to v4, including tailwind. I have a custom theme, but only to add some additional classes. The overall look and feel was standard Filament v3. After updating it looks like this and I have no idea where this coming from. Any pointers?
Solution:
You probably want to use to old palette. I think there is a generateV3ColorPalette option or similar on the Panel
No description

Filament Action: Select field shows ID instead of name when filling form

Hi everyone, I have a Filament Action that opens a form with a Select field for choosing an instructor. The issue is:...

How to handle logout other devices when login?

I have this task for single login it cannot login multiple device.. Since filament has no controller how to achieve it? I'm using Laravel 12, Filament v4 and Jetsream...

Postgres searchable results in invalid query?

Hi! Just ran into this as I was making some columns searchable. Given:...

Implementing Headings feature in RichEditor

I'm moving an application from filament 3 to 4 and i noticed that the RichEditor does not support heading tags other than h1,h2,h3 out of the box unlike the tiptap plugin. I'm unclear on how to re implement this feature in RichEditor....
Solution:
Nvm apparently i just had to register it as a plugin, it's not as neat as tiptap plugin but it works.

Show preview of already saved image in FileUpload

I am trying to show my already saved image in the FileUpload component. I have two issues: 1. I have to put the URL in an array otherwise I get foreach() argument must be of type array|object, string given - is this normal? 2. It does not load my image. ...
Solution:
Fixed it: `<?php namespace App\Filament\Pages;...

How to listen for repeater delete item action

I want to catch when one of repeater items is deleted in custom javascript file. Is there event dispatched ?
Solution:
No, I don't think so. You could overwrite the DeleteAction on the repeater and fire an event.

How to save relationship of `SpatieMediaLibraryFileUpload` to `statePath`

I am trying to store the uuid of the media record in statePath of the form (example: data.form_answers.bank_statements) where form_answers is the statePath and bank_statement is the field key/name. Currently SpatieMediaLibraryFileUpload retrieves all the media records from the given collection and does not respect (not even save to) statePath. In this case if I have let's say collection named documents and 2 SpatieMediaLibraryFileUpload components with keys bank_statements, application_form, after saving the form both of the components shows the combined medias. ...

Backend Validation also done by Filament?

I'm coming to a point where I'm checking and testing all validation rules and a question came up. How much validation does Filament do? The frontend validation is obvious, but how much backend validation does filament do? Is every rule in e.g. ->rules() also validated in the backend? How are you guys doing validation?...

How can add Google Analytics without package?

Hey guys, i found this guide but i need to know if this the right way to add Google Analytics in my dashboard SAAS ! please give me a comment about this, i use Filament 3.3.x Thanks ...

Create & create another doesnt keep url variables

I have a page that uses the url something like this: example.com/admin/postings/create?cycle_id=1 and when the page first loads it properly feels in the cycle_id. the user fills out the form and then hits Create & Create Another however when the page loads again, cycle_id is blank even though its still in the url? Is this a bug? Am I doing something wrong?...
Solution:
Oh it looks like your supposed to define what data to perserve when using Create Another, but it feels weird when when I only want this data to be preserved when it exists in the url already... I feel like it being in the URL should be an indicator that I want it preserved.

ChartWidget Max Height Not Adjusting Correctly

I currently have a chart widget that has a max height of 300px and a column span of full. It has set the height of the physical chart itself to the height, but the outer bounding box still retains it's full height. Is there a way to properly set the height of both the box and the chart, or at least flex form the outer bounds to the chart?...
No description

Collapsible Table Column

I want to do something like this ? anyone can help me , how to achieve this using filament tables ?...

Example for custom actions

I'm missing documentation for creating custom actions. Forms, Schema's, Tables and Infolists all have their dedicated section detailing how to create custom actions in V4. I have a lot of them in V3 style, but i'm curious if something has changed, or if I'm missing something. For example, looking at the documentation for testing actions I see an example where a simple action class just returns an Action from the make method. This is different than what we do, extending the Action class. What is the preferred way? Or are both accepted?...
Solution:
Both are acceptable

Any Idea to add video to RichEdit

If there is any idea or possibility to add YouTube video to Reach Edit we will be very grateful. thank you >...

Using grids on dashboards?

Is there a way to use Grids on dashboards? I mean, I wanna put widgets into grids, so that I can have something like this:
No description

Laravel Mcamara package

Hello everyone, im trying to use mcamara-localization https://github.com/mcamara/laravel-localization but how can i wrap panels routes with default generated by mcamara. Im really stuck actually to pass app locale to panels. Any help is appreciated. ...

Multi Tenancy Subdomain Issue

I'm using Filament v4 with subdomain tenancy. ->tenant(Organization::class, slugAttribute: 'slug') ->tenantDomain('{tenant:slug}.my-application.test') ...