0096-laravel-value-objects

Community

Encapsulate domain values with safe immutability.

AuthorMrJmpl3
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you model domain concepts as immutable value objects so that domain rules, validation, and equality behavior live with the data instead of being scattered across the codebase.

Core Features & Use Cases

  • Immutable domain primitives: Use readonly value objects for concepts like money and process results to prevent accidental mutation and improve reasoning.
  • Rich domain behavior + validation: Encapsulate domain logic and ensure consistent construction patterns via factories (e.g., handling major vs minor currency units).
  • Framework-friendly integration: Support JSON serialization and Livewire wire compatibility for smooth storage and UI/state hydration.

Use cases: Order processing outcomes (success/skip/fail) and financial calculations where correctness and clear currency handling matter.

Quick Start

Ask the assistant to generate a new immutable Laravel value object for a domain concept (for example, a domain-specific email address) following the same readonly + factory pattern as Money and ProcessResult.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: 0096-laravel-value-objects
Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0096-laravel-value-objects

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.