All work

Laravel Custom Fields

Open-Source Laravel Package

Developer Tools

2026

Built-in field types
17
Databases tested in CI: MySQL, PostgreSQL, SQLite
3
Tests, with 100% line coverage
369
Mutation score
99.9%

Problem

Business apps keep getting requests for one more field: a hotel wants a VIP reference on reservations, a customer wants a cost center on invoices. Each one is a migration, a deploy and a form change, and in a multi-tenant app one tenant's field is noise to every other tenant.

Approach

Stored definitions and values in two tables of their own, so the app's tables never change. A trait makes each field behave like a model attribute: it is filled, validated through Laravel's validator, saved in the model's transaction and serialized with it, and a real column always wins over a field of the same name. Fields can be global or belong to one tenant. Query scopes filter by value with SQL written for each supported database, and an Artisan command builds a field step by step, checking each answer as it is given.

Outcome

Version 1.0.0 is on Packagist with a public documentation site covering installation, forms, tenancy and production examples. CI runs the suite on PHP 8.3 to 8.5 and Laravel 12 and 13, against MySQL and PostgreSQL, with a mutation-testing gate and a benchmark of 100,000 records.

Let's build something useful

If you're looking for someone to develop business software, improve operational processes, or integrate existing systems, I'd be happy to discuss your project.