Filament

F

Filament

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

Join

Richeditor tiptap allow html attributes

I have a html formatted text in database, eg: <img src="..." width="100%" alt="XY" style="border:red 1px solid"/> If I load this into the richeditor, the width and style tags will be removed. ...

columnGroups

How to hide empty cells I use columnGroups
No description

Repeater field is not showing as a table

I am trying to use this: https://filamentphp.com/docs/4.x/forms/repeater#table-repeaters but I cannot get it to show as in the docs. I cannot figure out what I am doing wrong. It shows like a normal repeater, see attached image. Anyone ran into this issue? I'm using a clean Filament v4 install....
Solution:
Oh, apparently I need to use ->columnSpanFull() on the field or ->columns(1) on the schema.
No description

Not able to download the files in S3

I’m able to upload files with the path files/id/name.pdf but can’t download them
No description

Dropdown Panel Position

I’m using Multi-Tenancy in my application. Recently, I switched the navigation to Top Navigation, but the tenant dropdown panel is not clearly visible — it appears to be opening upwards. How can i fix this....
Solution:
It's either a bug or you have some issues with the assets. Did you publish Filament views? You can check via php artisan filament --only=about. Otherwise, try republishing your assets php artisan filament:assets...
No description

Close Modal From Child & Parent

In my Filament table, I have a parent modal for cancelling an application, and inside it, I have an extra footer action that opens a child modal to collect remarks. When I cancel from the child modal, the parent modal stays open. How can I close both the child and parent modals automatically after cancelling the child modal?
No description

Allowed memory exhausted while using fn($record) in hintAction

Hello, On my basket editing page, I can see the customer (but aI can not change the customer) and would like to add a button to edit the customer's information in a modal on the same page. I am using hintAction :...

Filament login customisation

Hi Clever People. I have an app I've put together in basic Laravel with some Livewire. It has it's own relatively simple login mechanism. I'm liking what Filament offers with the tables, forms etc so I'd like to re-code my app to use it. I also want to take advantage of the Filament's login pages, change password etc. Because of how the tenancy works within my app, I need to add some functionality to the login blade and controller. It's all buried in the vendor folder however....

SpatieMediaFileUpload how to set value using another model already existing file

$set('nationaliy_proof', [$user->getFirstMedia('nationality_proof')]);
$set('nationaliy_proof', [$user->getFirstMedia('nationality_proof')]);
``` SpatieMediaLibraryFileUpload::make('nationality_proof') ->label('Nationality Proof Document (Aadhar/Voter ID)') ->collection('nationality_proof')...

Only 1 i can add in repeater

I use custom page and custom widget but only 1 i can add. my code use InteractsWithForms;...
No description

Filament v4 testing with Pest

Hi all, how can I add data-test attributes to elements I want to test out? I would like to assert some things on the elements such as tables, widgets.. etc ```php $page->assertSeeIn('body > div.fi-layout > div.fi-main-ctn > main > div > div > div > div > div:nth-child(1) > div > div > div > div > div > div > div > div > div > section > div > div > div:nth-child(1) > div > div > div > div.fi-wi-stats-overview-stat-value', number_format($totalTributes, thousands_separator: '.'));...

Filament v4 registration with Breeze: handle roles and team creation for multi-tenancy

Hello, I'm working with Filament v4 and Laravel, and I’m trying to figure out the best way to handle roles during user registration. Here’s what I’d like to do:...

Is is possible to start an action listening to an event ?

I've tried this: ```php $this->dispatch('open-adauga-cerere', [...

Manually triggering a modal action

Is it possible to use modals for edit actions, but keep the edit URL active? I've got a custom widget and I want to view some details about a model there - ideally in a modal instead of redirecting. How could I force a "view action" inside a href? Is that even possible?...

Disable Filament Tenancy Scoping for a Model

Is there any way to disable filament automatic tenancy scoping for a model? Take this Role model for an example, ``` class Role extends SpatieRole...
Solution:
I have tried that using
protected static bool $isScopedToTenant = false;
protected static bool $isScopedToTenant = false;
but to no avail. I have been only able to use the newQuery to fix it....

How to accurately render RichEditor in Vuejs?

hello, i have a RichEditor in my Filamentphp like so
RichEditor::make('description_en')->label("Description (English)")->columnSpanFull(),
RichEditor::make('description_en')->label("Description (English)")->columnSpanFull(),
and in my Vuejs project's app.css i import the filamentphp css per the documentation...
Solution:
it could definitely do with tidying up on our end, but its not supposed to look 100% identical because ours is an editing experience, so we need more borders etc to allow things to be moved and resized

Markdown Editor: Array to string conversion error

I have a relation manager with a form which contains a markdown editor. 1. The problem is every time I´m trying to create a record with CreateAction I get this error: Illuminate\Database\QueryException: Array to string conversion. 2. When editing a record with EditAction my text of the markdown editor will be saved like this in the database:...

requiredWithoutAll() doesn't seem to be working

I am attempting to use requiredWithoutAll() on a custom page. This is my condensed code: `<?php namespace App\Filament\Pages;...
Solution:
The issue I had is that $data = $this->form->getState(); needs to be called in save() for these validation mechanisms to take place.

Delay with Toggle when is live()

Hi guys! I have an issue with 2 toggles the first one is live() with afterStateUpdated() method and second one should be switched true by clicking the first one and otherwise when the second one is switched true and clicking on it should switched to false and switch the first toggle to true, and for this issue I'm facing delay more than 1 sec please any help for this??...

How to create "cards" on create and edit

Like this:
Solution:
Use Sections to group your form components
No description