Skip to content

Instantly share code, notes, and snippets.

View cpereiraweb's full-sized avatar

Claudio Pereira cpereiraweb

  • Rio de Janeiro, Brazil
View GitHub Profile
@cpereiraweb
cpereiraweb / readme.md
Created June 1, 2025 19:54 — forked from thaqebon/using-tailwind-v4-in-laravel12-with-filament-v3.md
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

@cpereiraweb
cpereiraweb / CheckUserCompleteInfo.php
Created February 10, 2025 14:25 — forked from jeffersongoncalves/CheckUserCompleteInfo.php
Middleware check user info completed
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class CheckUserCompleteInfo
{
<?php
namespace App\Providers;
use Filament\Actions;
use Filament\Forms;
use Filament\Infolists;
use Filament\Notifications\Notification;
use Filament\Pages;
use Filament\Support\Enums\MaxWidth;
<?php
namespace App\Forms\Components;
use Closure;
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\Field;
class DropInAction extends Field
{
@cpereiraweb
cpereiraweb / composer.json
Created July 21, 2023 16:49
composer.json [Laravel 10 + Filament 3]
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": [
"laravel",
"framework"
],
"license": "MIT",
"require": {
@cpereiraweb
cpereiraweb / composer.json
Created November 17, 2022 21:20
composer.json
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"php": "^8.0.2",
"bezhansalleh/filament-shield": "^2.3",
"filament/filament": "^2.0",
@cpereiraweb
cpereiraweb / Aliases
Created March 10, 2022 01:01 — forked from r2luna/Aliases
# -------------------------------------------------------------------------------------------
# ALIASES
# -------------------------------------------------------------------------------------------
# Brew
alias bsa='brew services start'
alias bs='brew services'
alias bso='brew services stop'
# Git
@cpereiraweb
cpereiraweb / VSCode
Created March 10, 2022 01:01 — forked from r2luna/VSCode
VSCode Settings
alefragnani.project-manager
amiralizadeh9480.laravel-extra-intellisense
antfu.icons-carbon
austenc.laravel-blade-spacer
bmewburn.vscode-intelephense-client
bradlc.vscode-tailwindcss
calebporzio.better-keybindings
calebporzio.better-phpunit
ceciljacob.code-plus-theme
cjhowe7.laravel-blade
@cpereiraweb
cpereiraweb / deploy.sh
Created February 14, 2022 23:09 — forked from cagartner/deploy.sh
Laravel Push deploy Github actions example
#!/bin/sh
set -e
vendor/bin/phpunit
(git push) || true
git checkout production
git merge master
@cpereiraweb
cpereiraweb / AppNavigationMenu.php
Created June 11, 2021 19:22 — forked from rosswintle/AppNavigationMenu.php
Laravel Jetstream Livewire Navigation Menu
<?php
/**
* This class extends the base NavigationClass provided by Jetstream.
* Note that the base class includes the navigation-menu.blade.php
*/
namespace App\Http\Livewire;
class AppNavigationMenu extends \Laravel\Jetstream\Http\Livewire\NavigationMenu
{