Skip to content
This documentation is in construction.

Overview

The Schema is a feature of Epsicube, providing a robust system to define structured, validated, and reusable data configurations.

It is fully integrated into the framework and can be leveraged anywhere in your application—whether for configuration, forms, options, or any structured data.

Using Schema, you can:

  • Declare fields with specific types, default values, and constraints.
  • Handle complex or nested data structures in a clean and maintainable way.
  • Validate and transform data consistently across multiple contexts:
    • Laravel Validation Rules
    • FilamentPHP Schema (Forms or Infolists)
    • JSON Schema
    • CLI prompts (via Laravel Prompts)
  1. Terminal window
    composer require epsicube/schemas
  2. Schemas are defined using the Epsicube\Schemas\Schema class and its field definitions.. See Defining Schemas for step-by-step instructions.

  3. Once defined, schemas can be used to validate, transform, and structure data anywhere in your application.