Skip to content

Instantly share code, notes, and snippets.

View madushancs's full-sized avatar
🏠
Working from home

Madushan Serasinghe madushancs

🏠
Working from home
  • Sri Lanka
View GitHub Profile
@thaqebon
thaqebon / using-tailwind-v4-in-laravel12-with-filament-v3.md
Last active June 16, 2025 05:34
How to Use Tailwind v4 in Laravel 12 While Keeping Tailwind v3 for Filament v3 (Using Vite Separation)

🚀 How to Use Tailwind v3 for Filament v3 While Keeping Tailwind v4 in Laravel 12 (Using Vite Separation)

Problem: Laravel 12 supports Tailwind CSS v4, but Filament v3 is tied to Tailwind v3. Using both together can cause conflicts.

This guide shows how I solved the problem by isolating Filament’s frontend stack — with its own Tailwind v3, Vite config, and PostCSS config — separate from the Laravel app, which uses Tailwind v4.


🛠️ Step-by-Step Solution

@nathandaly
nathandaly / BaseResource.php
Last active May 22, 2025 19:44
Tenancy for Laravel & Filament V3 (Tenant per database)
<?php
/**
* Below is an the extended Filament resource your tenant panel resources
* will have to extend so that the queries are scoped properly.
*/
namespace App\Filament;
use Filament\Resources\Resource;