Building Dynamic Menus in Filament + Laravel

Building dynamic navigation menus is a common requirement in modern web applications. Whether you’re creating a CMS, a SaaS dashboard, or a content-driven website, hardcoding menus quickly becomes difficult to maintain and scale. In frameworks like Laravel, developers often rely on structured data and admin panels to manage application content. This is where Filament becomes … Read more

How to Handle Composite Unique Key Validation in Filament

In this article, we will learn how to achieve composite unique key validation in filament. In most practical scenarios, a single column is insufficient to ensure uniqueness. For example: This is known as composite unique constraint, where more than one column need to be unique together. In this article, we will learn how to achieve … Read more

How to Add Row Index / Serial Number in Filament Table

In this guide, we will see how we can add row index in filament table. Problem By default, Filament tables do not show row numbers.In many admin panels, users expect to see a serial number / index column (1, 2, 3…) for better readability. Solution You can easily add an index column using Filament’s TextColumn … Read more

How to Show Different Stats Widgets to Different Roles in FilamentPHP

When building dashboards in FilamentPHP, you may want to display different stats widgets to different user roles.For example: Filament makes this very easy by using simple role or permission checks inside your widget. 1. Create your StatsOverviewWidget The above command will generate the StatsOverview file. Permission Hide the entire widget Lets say, we want to … Read more

A complete guide to filament multi-tenant setup

In this article, we explore how we can setup multi-tenancy in filament. This is a complete lesson where we will start from creating a new laravel project to setup multi tenancy in filament and also setup some of the useful pacakges in our filament application. Create Laravel Project First, we will create a fresh laravel … Read more

How to add nested resources in filament?

In this guide, we will explore how we can add nested resources in filament panel. This feature was introduced in filament v4. Setup model to add nested resources in filament For nested resources, we will have 4 models. The relationship for above is: I’ve used this approach in the backend of my mobile app — … Read more

How to add Language switcher in filament?

add language switcher in fialment

In this guide, we will explore how we can add language switcher in filament. There are some packages like kenepa/translation-manager-plugin, bezhanSalleh/filament-panel-switch to add language switcher in filament instantly with additional features. But in this article, we will add our own. Here is an article to add Language switcher in fialment using kenepa/translation-manager-plugin. Storing lang You … Read more

How to add Tabs on custom filament page?

In this guide, we will explore how we can add tabs on custom filament page. Create a page to add tabs on custom filament page To create a new filament page, just hit the following commad: You can explore more about creating filament custom page in this article. Implement HasTable Second step will be to … Read more