Filament

F

Filament

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

Join

How do you properly nest a Table in a FilamentPHP Form Tab?

Issue Description I'm using a Filament resource with a form that includes multiple tabs. One of the tabs, "VAT Settings", contains a Filament table rendered through a Livewire component. Resource Snippet ```...

How to do Multi Tabs for widgets in Dashboard ?

I have a group of Widgets I want to divide it into groups inside Tabs

Is A Persistent Audio Player in Filament Admin Panel Possible?

im trying to add a persistent livewire player component in the filament admin footer. Just with this sentence is enough so u can tell if what im trying to do is possible?

Edit Multiple Records

I'm using v3 Panels where I have a Resource; I wonder if there's any reasonable way to cobble up a bulk action where one could Bulk edit the selected records? Basically the expectation is - select the recods, bulk edit, takes you to the familiar looking EditRecord page, but with multiple forms, each with it's own save button; Guess it would have to be outside panels and in a custom page, with a redirect of sorts, but if anyone has any ideas - I would love to hear them....

View Page Breaking Routes

I've just added an infolist to a resource to allow viewing of records, but it's breaking routes. I have sub-routes, so for example, Activities can have categories. The routing is: /activities...

Ensuring exclusive role filters with Spatie in Laravel

Hello everyone, I’m encountering an issue with my role-based filters in Laravel (using Spatie for role management). Right now, when I select multiple roles—such as super_admin and doctor—the query returns any record that has either role. In other words, I see: - Users with only the super_admin role...
Solution:
Check the apply() method of the SelectFilter. When using multiple in uses whereIn(). You can create or own Filter, extend the SelectFilter and overwrite the apply method to your liking. Lines 166–182...
No description

Confusing Attributes in getSearchResults Method For Select From Field

I came across this code in filament v3 ``` public function getSearchResults(string $search): array { if (! $this->getSearchResultsUsing) {...
Solution:
I would suggest to make it look like this
You can implement this in your code, right? I don't think the change will happen because it's a breaking change....

Spatie translatable: Switcher not showing in simple resource

Hello, I'm using https://filamentphp.com/plugins/filament-spatie-translatable, it works fine on all pages, except for simple resource, in the doc they mentioned "If you're using a simple resource, you can make the ManageRecords page translatable instead:" here is my code ```php...
No description

current location action button

Can you tell me how to easily organize the button Get my current location?...
No description

Best Way to Implement a 1-1 Polymorphic Relationship on a Table

I have a StockCode model that can morph to different types of stockcodeables such as PaperBag, MeshBag, etc, which each have their own additonal stockcode information. Each stockcodeable has their own form. The form will create a StockCode and it’s specific stockcodeable. What is the best way to go about:...

Style/color code entries in SelectColumn dropdown list

Is it possible to stylze the select dropdown in the column/table view? I have a status dropdown that I'd like to indicate with color where possible.

Tooltip on Enums?

Hi! Trying to add a tooltip to a (table) TextColumn. 1. My Enum looks like this: ...
Solution:
The error happens because $state is null in some rows ``` IconColumn::make('priority') ->label('') ->icon(fn($state) => $state?->getIcon())...

SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'created_at' in order clause is ambiguo

Why do i get this error here even though i set the default sort from the specific table? ```php <?php namespace App\Filament\Resources\UserResource\RelationManagers;...

profile custom

Hi, everyone! How are you? I'm having trouble customizing the profile tab. I want to change the label to something like "Change password." I tried creating a new class and calling it in the panel, but it's been quite difficult. Could you help me with this?

How to update the "upload complete" message label

How can I update the "upload complete" message label on File Upload
No description

Builder content not showing in Infolist

Hello. When I create a form with Builder, the content of this form does not appear in the Infolist. ```php Builder::make('attachments')->columnSpanFull()->hiddenLabel()->blocks([ Builder\Block::make('paragraph')->schema([...
No description

V4 Nested Resources

Has anybody started using nested resources in version 4 once I try accessing the nested list I get 404 Parent Resource ```php protected static ?string $model = ReviewProgram::class;...
Solution:
I think you should add to it the parent resource ```php public static function getPages(): array {...

Dumping $data doesn't include the SpatieMediaLibraryFileUpload value.

$data doesn't include the thumbnail from SpatieMediaLibraryFileUpload.

Custom Page & Dynamic Forms, entanglement issues

Morning... Anyone got any suggestions on the best way to deal with a filament page that uses a dynamic form. The form is built from a database of fields, and ends up with assigned name\id such as 'textArea40'...

[Filament v3] StatsOverview Widget Not Showing on Custom Dashboard Page

Hi everyone, I'm currently working with Filament v3, and I'm trying to build a custom dashboard page that shows a StatsOverviewWidget. However, the widget does not appear on the page even though I believe I’ve registered everything correctly. I generated the widget using the command, and choose admin panel...