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
name description
testing
Write comprehensive unit and integration tests following project conventions and best practices

Testing Skill

Stack

  • Runner: Vitest (jsdom) — globals enabled (describe, it, expect, etc.)
@jeffegiovani
jeffegiovani / AppServiceProvider.php
Last active September 17, 2025 10:23
Character Count - Filament V4 Macro Service Provider
<?php
namespace App\Providers;
use Filament\Forms\Components\Field;
use Filament\Schemas\Components\Html;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
@thaqebon
thaqebon / using-tailwind-v4-in-laravel12-with-filament-v3.md
Last active September 7, 2025 09:12
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

@jeffersongoncalves
jeffersongoncalves / CheckUserCompleteInfo.php
Created February 10, 2025 13:51
Middleware check user info completed
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
class CheckUserCompleteInfo
{
@saade
saade / FilamentServiceProvider.php
Last active September 19, 2025 10:47
My Filament Defaults
<?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;
@nathandaly
nathandaly / BaseResource.php
Last active August 12, 2025 21:28
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;
<?php
namespace App\Forms\Components;
use Closure;
use Filament\Forms\Components\Actions\Action;
use Filament\Forms\Components\Field;
class DropInAction extends Field
{
@r2luna
r2luna / vscode extensions <= 2024
Last active June 9, 2025 16:09
VSCode Settings <= 2024
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
@pedroufv
pedroufv / Inflector.php
Created February 8, 2021 23:29
Pluralize pt-br
<?php
namespace Laravel\Support\Services;
class Inflector
{
/**
* @var array
*/
public static $rules = [
# -------------------------------------------------------------------------------------------
# ALIASES
# -------------------------------------------------------------------------------------------
# Brew
alias bsa='brew services start'
alias bs='brew services'
alias bso='brew services stop'
# Git