Filament

F

Filament

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

Join

Filament Updating Non-Existent Relation Column - But why ?

What I am trying to do: I’m building a Filament admin form for editing a Studio record. In that form I have a Section with ->relationship('aidooData') so that nested fields correspond to a related StudioAidooData model. My filament version is 3.3.43. What I did: - In the migration for studio_aidoo_data I created a studio_id foreign ULID column (non-nullable) plus other fields....

Icon on blade not showing

```php <div class="absolute -left-8 flex items-center justify-center w-8 h-8 rounded-full {{ $approval['status_color'] }} ring-4 ring-white dark:ring-gray-900"> @switch($approval['status_icon']) @case('check') <x-heroicon-s-check class="w-4 h-4 text-white" />...

Custom Aggregate Table

Hi. I'm having error on aggregate table on v4. In v3, I can add the getTableRecordKey function and everything work just fine. But in v4, even though I added this to resolve table record id, but it seems like the query builder still get the model id in the groupBy by the end. ...

Is there a way to decouple validation from the form schema?

I'd like to be able to share validation between my filament form and elsewhere, but the validation seems to be quite tightly integrated with the Livewire page and Schema (via the CanBeValidated trait). Is there a way to use, for example, a standard Laravel Form Validation class, or even to specify the validation rules as an array instead? I've dabbled with creating the Schema myself, but can't quite figure out how to do it....

Increase Opacity of Notifications

The transparency of the notifications is too much. Is there a way to increase the opacity? The notifications are muddled when there is text behind it.
No description

Filament V4 - Best practice on multi language json fields ?

Good day, im currently working on a side project for myself to improve my overall Filament knowledge and Im currently a point where i am kinda lost. I try to create a "product" with multi-language names, description etc. The database is setup for json to make the language string itself easy to store and receive. Now im looking for a way to make the user input in the admin panel modern, minimalistic and not so cluttered. I found the outerweb/filament-translatable-fields package and gave it a try, thats also my current state but i dont like the aestetic of having multiple fields with the toggles for the language. So the question is more general and i want to know your "way to go" for theese kind of things. I've also attached an image of the related part in the Form....
No description

HasWizard on a custom page

What do I need for a basic wizard on a custom page example? I tried the following but I'm getting Method App\Filament\Resources\GroupResource\Pages\GroupCustom::form does not exist. ```php use App\Filament\Resources\GroupResource; use Filament\Forms\Components\TextInput; use Filament\Resources\Pages\Concerns\HasWizard;...
Solution:
🤔 I'll use CreateRecord instead of Page

Filament Table ToggleColumn not updating record or triggering beforeStateUpdated()

Hi everyone, I’m trying to update a record using a ToggleColumn (I also tried CheckboxColumn, same issue). The toggle shows up fine, but when I click it, nothing updates in the database. ...

Case-insensitive searches from RichEditor columns

I use json columns for RichEditor columns, but that makes a basic filament table search col like '%search%' case-sensitive. Has anyone figured out okay ways to make case-insensitive searches from rich text columns? 🤔

table group

How to create a table with 3 nested groups Group 1 by category and sum totals Group 2 by kode_morph and sum totals List data with title, totals, actions, etc. ...

Using TextInputColumn in Table with custom data , get this error

Filament\Tables\Columns\Column::hasRelationship(): Argument #1 ($record) must be of type Illuminate\Database\Eloquent\Model, array given

Filament-Shield v4 problem with new resources

When i am creating a new resource for Filament v4 with Filament-Shield v4 installed, the newly created resource isn't showing up in the navigation. When creating default permissions and policies with shield:generate --all I can see, that there is a policy created in App\Policies but isn't showing neither in the panel nav or in the roles section from Filament-Shield. I've cleared all caches multiple times but no effort at all. Am I missing here something? I've been using Filament-Shield v3 with Filament v3 and never got that issues...!? Thanks in advance for your help 🙏...

morphtoselect relation related does not exists

Hello, I have page in resource for Ticket called AddReplyPage. It represents page where I can manage ticket, and add reply for ticket. Now, I have Action where I want to create task for ticket and that is related to Ticket. I have TaskForm schema which has MorphToSelect(related) field, and Type has defined Ticket model....
Solution:

favicon not found

The favicon is located in public/images/favicon.ico In the panel I have specified:
->favicon(asset('images/favicon.ico'))
->favicon(asset('images/favicon.ico'))
...
No description

Showing Table in Wizard (Custom Livewire component)

Hey guys! I'd like to recreate this (screenshot) in a public facing custom Livewire component using the Wizard schema but I'm not sure on how I should approach this. For some project background, I'm building an application that allows guests to register for an Activity which creates an Enrollment after the guest selected the activity, entered their Email address and agreed to the terms on the third page. For now, I've been able to create this page using the code in the GitHub Gist but this isn't really a perfect solution. For example, the "Next" button shows on the first page although guests should use the "Inschrijven" (Enroll) button in this example. I've also tried working with the Bulk selection while limiting to only one selection....
No description

What happened with verticalAlignment in v4?

In Filament v3 there was a good way to control the vertical alignment of action button with ->verticalAlignment(VerticalAlignment::End), Se docs: https://filamentphp.com/docs/3.x/forms/actions#controlling-the-vertical-alignment-of-independent-form-actions What happened with this in version 4? Is it still possible to do in forms? In this case I want to align an action button with the input fields in a Grid in a form....
Solution:
you can use the same from Filament\Schemas\Components\Actions

Filament, hiding the white empty bar on mobile

So, i made a custom page, for login page, for some reason, it all looks well, but on mobile, there is this white bar on the bottom, for no reason, i have tried for over 2 hours to get it away, there is no info online it seems about this issue. DOES anyone have any tips? I Suspect its filaments panel trying to render navbar on mobile???? I am using a view basically empty to not render header etc: <x-filament-panels::layout.base :livewire="$livewire"> {{ $slot }}...
No description

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:...