custom-fields-development

Define dynamic custom fields on Laravel Eloquent models without migrations.

1.5k|170|Updated Sep 25, 2024
One-click install
npx skills add https://github.com/relaticle/relaticle --skill custom-fields-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: custom-fields-development
Source: https://github.com/relaticle/relaticle/tree/main/.github/skills/custom-fields-development
Command: npx skills add https://github.com/relaticle/relaticle --skill custom-fields-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dynamic custom fields enable flexible data schemas on Eloquent models without altering database migrations, reducing fragility and rollout time.

Core Features & Use Cases

  • Attach and manage custom fields on any model without migrations.
  • Integrate with Filament forms, tables, and infolists for seamless UI.
  • Use across CSV import/export workflows to preserve field definitions.

Quick Start

Use the trait on a model, configure the Filament plugin, and begin using custom fields immediately.

Frequently Asked Questions about custom-fields-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom fields to Laravel Eloquent models without writing database migrations?

You can add custom fields to Eloquent models without migrations by using a dedicated trait on the model. This enables a dynamic data schema, allowing you to define and attach fields directly without altering your database structure.

Can I use dynamic custom fields with Filament forms, tables, and infolists?

Yes, dynamic custom fields integrate seamlessly with Filament forms, tables, and infolists. You can configure the Filament plugin to immediately render and manage your custom fields within the resource UI.

Does this custom field system support field validation and data encryption?

Yes, the pluggable custom field system includes support for field validation and data encryption. It also provides options for field visibility and multi-tenancy to secure and manage your dynamic data.

How do custom fields work with CSV import and export workflows in Laravel?

Custom field definitions can be preserved across CSV import and export workflows. This allows your dynamic field data to be accurately mapped and transferred when moving records in or out of your application.

What is the best way to manage dynamic data schemas for multi-tenant Filament applications?

Using a pluggable field type system with model-level configuration hooks is the best way to manage dynamic schemas for multi-tenant Filament applications. It provides configuration providers for entity discovery and feature flags without requiring migrations.

Do I need to modify database migrations every time I add a new custom field to a model?

No, you do not need to modify database migrations when adding new custom fields. The system is designed to reduce fragility and rollout time by attaching and managing dynamic fields entirely without migrations.