Filament

F

Filament

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

Join

How to make a parent sidebar item non-clickable (header only that expands/collapses children)

I want a sidebar section whose parent item has an icon and (optionally) a badge but no URL, so it acts only as a header to expand/collapse the child resources—similar to the second screenshot below. Right now my parent is clickable and navigates somewhere (first screenshot).
No description

Async InfolistEntry

I thought I stumbled once upon a trick to async load some data after the initial pageload. I.E.: I'm doing an ai summary and dont want that external api-call to block the rest of the view. Is there a built in way to do so?...

css looks wierd after upgrading to V4

Hello everyone, im trying to upgrade my Filament app to V4. But i cant seem to get the css to work while i followed all the upgrade steps. Can someone help me....
No description

Turning resources into routes

I have previously made a fully working website which has it is own sidebars and everything is working without filament but now I got task to just merge it to filament project that uses filament sidebar but to not remake all my components into filament. So basically ignore everything filament has to offer and when I add resource like announcements instead of filling it with stuff just route to my views that have announcements

Repeater add/remove item causes form re-render and js modified values reset to defaults

I have a js calculation in a filament form because I want to calculate without backend requests. I have repeater on the page and when I add/remove item from the repeater it triggers update request which re-renders the form and my js calculated values are gone. Example: I have 3 inputs (x,y,z) one of them (z) is disabled and is calculated via js. x*y=z I want to save all 3 of them into the db. If I change x or y I calculate the rezult and put the value into z....

TextColumn with nested relationships - How to display unique values?

Hi everyone! 👋 I'm working with a TextColumn that displays data from a nested relationship (MorphMany → BelongsToMany), and I need to show unique user names. My setup:...

Regression in `Repeater` after updated from `v4.0.18`

After upgrading from v4.0.18 to v4.1.0 I have observed that I cannot delete item from Repeater, also observed that DeleteAction does not fire ->action() when the delete button pressed. I have rolledback to v4.0.18 and the problem is solved, then I have updated to v4.0.19 and the problem is there again. I have cleared all the caches using ```js php artisan optimize:clear...

Repeatable entry using table error like this

Hi my repeatable entry table mode showing like this idk why this happen. ``` <?php namespace App\Filament\Resources\Clients\Schemas;...
Solution:
it working, I'm using
->columns(1)
->columns(1)
thank you!...
No description

Development License

Hi! I would like developers to be able to install our backend dashboard on their machines while they develop with Filament and its plugins. It seems, however, that there's only one license granted. This means that we'd have to distribute our license key to developers, which is not good. How should I go about maintaining prod license key privacy, while allowing engineers to install Filament for development?...

Rich Editor: why does a null state become a paragraph? Working on a PR for forced content structures

Hi! I am currently working on a PR to support forced content structures (as seen in https://tiptap.dev/docs/examples/advanced/forced-content-structure) in the Rich Editor which will allow you to do something like this: ```php...

Nested schema in filament v4

Good day everyone, I’m new to Filament and I’d like to ask if it’s possible (or allowed) to use a nested schema function inside another schema. Here’s my current setup. I created a tasks schema that returns a table:...

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')...