aglipanci/laravel-eloquent-case
Add case-insensitive where clauses to Laravel Eloquent. This package provides simple, chainable whereCaseInsensitive and orWhereCaseInsensitive methods so you can query models without worrying about letter case, avoiding raw SQL and keeping your code clean and readable.
aglipanci/laravel-eloquent-case adds native SQL CASE WHEN expressions to Laravel's Eloquent and query builder. Instead of hand-writing DB::raw() strings, you get a fluent, readable API for conditional logic inside select, orderBy, and aggregate clauses.
User::query()
->case()->when('age', '>=', 18)->then('adult')->else('minor')->end();
case() / when() / then() / else() / end() chainwhen branches and raw conditionsHow can I help you explore Laravel packages today?