Filament

F

Filament

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

Join

order tenancy menu

Working on multi-tenancy (https://filamentphp.com/docs/3.x/panels/tenancy#customizing-the-tenant-menu). The tenant menu in top left is ordering by ID on the table, how can I alter this so it orders alphabetically on the title?

cluster issue

im trying to configure a cluster like the tutorial https://filamentphp.com/docs/3.x/panels/clusters but getting this (attached image) , this is my setting and structure attached image what im missing? thank you...
Solution:
nevermind, forgot to run migrations
No description

Database notifications & tenancy

Anyone thought about\tried dealing with separating out database notifications for tenancy situations. Can you have notifications only showing on the active tenant ?...

Dédicated page relation mùanager

Hello everyone, I have a ressource list post. Some of the post can have multiple authors and other not. I would like to have a link into my action dropdown (only for the post who can have multi authors) to access to a dedicated page for the authors. I don't want that the relation manager appear in the post edit form. Thx in advance Fred...

Can't make it 2 columns on small screen

I have a custom widget ```html <x-filament-widgets::widget> <x-filament::section>...
Solution:
You’ll need to do a custom theme if you’re using panels and make sure your custom widget’s views are in the content of the theme tailwind.config.js

laravel breeze logout

I have laravel breeze installed. I created the guard customer. But when I logout as a customer the admin also logs out. How can I prevent this?

XSS Protection with "amidesfahani/filament-tinyeditor" in Laravel Filament V3

I'm using the "amidesfahani/filament-tinyeditor": "^2.0" package. What measures do you use to protect against XSS attacks? Do you have any recommendations or could you help with this?

SUB_NAVIGATION Hook

Hi all I am having trouble finding a hook that will let me display content underneath the Sub Navigation on a resource. I've tried all the hooks and the best I can find is PAGE_SUB_NAVIGATION_START_AFTER but that shows the content next to the sub navigation rather than under it. ...

Weird random issues with Filament Table using Sushi on swapping users.

Hello, I have a table that consumes from an API and displays data in a table using sushi. It works great but. I have noticed that if I -> login with a user A ---> it shows data correctly ( using user A params, Im tracking petitions in API server to check params of petitions)-->logoff -> in the same page without reloading login with user B (using user B params) NOW sometimes the table still displays A data (even if server recived B params correctly and returned B data). Any ideas of what can be causing that. Thanks in advance. ...

Table Column Labels

I have a table and one of the columns is an icon and so I don't want a label to show. I do this by setting ->label('') because there doesn't seem to be a ->hiddenLabel() on table columns. However, when I set ->toggleable() on the column it appears in the list with no label - like the below. Any ideas how to get around this?...
No description

In a iconButton action, is it possible to make the iconSize larger than Large without using css?

I have this view action: ```php Tables\Actions\ViewAction::make() ->iconButton() ->size('xl'),...

display all select field options but make it searchable as well

Is there a way to make a select field searchable but display all options as well?

FileUpload (image) not working in staging but works locally

When uploading an image I get the following error in staging: (see img) I've found the following article but I dont use S3, I use public https://www.answeroverflow.com/m/1257710929173413908...
Solution:
fixed, permission issue.. im nub 💀 (chmod 777, checked console errors)
No description

Nested Repeater data not pre-populated to edit form

Hello, I had used Nested Repeater for parent child elements added dynamically, it willl work and also saved in database but when i open edit for child repeater data is not pre-populated....

Whats the best way to use Filament Tables in a Custom Package

So I am making a Laravel package and part of that is a small UI. I would love to use Filament Tables on that UI as it would solve most of the problems and save a bunch of time but my question is what is the best way. The installing project may or may not have filament installed. Whats the best way to include the assets regarded for Filament?...

New Button Underneath Form

Hi everyone, can I add new button here (please see screenshot). I want to add another button to move to review page. Thanks...
No description

afterStateUpdated not firing when removing from multiple FileUpload

I have a FileUpload field in a custom Livewire component: ```php FileUpload::make('images') ->disk('public')...

Auto naming based on 3 select input fields

So i want to auto naming the program name based on user input on 3 select option , the type of internship , start month and get the current name of the requester, its like a slug but dependant on more fields, how to achieve that? the format of the program name will be "name - type - start month"
Solution:
Make your select inputs ->live() Then use something like this
->afterStateHydrated(fn(Forms\Get $get, Forms\Set $set) => self::setProgramName($get, $set))
->afterStateHydrated(fn(Forms\Get $get, Forms\Set $set) => self::setProgramName($get, $set))
...
No description

toggle component issue

is anyone else having issues with the Toggle element? the active state is exceeding the component border.
Solution:
Actually no, I was trying to build a 3D css animation, and the package I installed messed up