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)
Getting Started
Section titled “Getting Started”-
Install the package
Section titled “Install the package”Terminal window composer require epsicube/schemas -
Define your first schema
Section titled “Define your first schema”Schemas are defined using the
Epsicube\Schemas\Schemaclass and its field definitions.. See Defining Schemas for step-by-step instructions. -
Start using schemas
Section titled “Start using schemas”Once defined, schemas can be used to validate, transform, and structure data anywhere in your application.