---
title: "Aegis for Laravel: Scaffolding and Validation Helpers for Value Objects"
url: https://daily.dev/posts/aegis-for-laravel-scaffolding-and-validation-helpers-for-value-objects-4d6bjbkyt
source_url: https://laravel-news.com/aegis-for-laravel-scaffolding-and-validation-helpers-for-value-objects
type: article
source: "Laravel News"
published: 2026-05-28T16:10:29.289Z
updated: 2026-08-24T07:06:12.676Z
tags: ["php", "laravel", "domain-driven-design"]
reading_time: 5
upvotes: 6
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Aegis for Laravel: Scaffolding and Validation Helpers for Value Objects

**[Laravel News](https://daily.dev/sources/ln)** · 5 min read · 6 upvotes · 0 comments

## Summary

Aegis is a new Laravel package that automates the boilerplate of creating Value Objects in PHP. A single Artisan command (`make:value-object`) generates a `final readonly` class with validation, normalization, Eloquent casting, and a test stub. It also registers a `Rule::valueObject()` macro for use in FormRequests and provides a `ResolvesValueObjects` trait to retrieve validated instances directly. A `vo:scan` command analyzes existing Eloquent models and migrations to identify primitive columns that are candidates for Value Object wrapping, reporting a coverage percentage. Requires PHP 8.3+ and Laravel 13.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://laravel-news.com/aegis-for-laravel-scaffolding-and-validation-helpers-for-value-objects>

## Similar posts on daily.dev

- [AI Generative Engine Optimization for Laravel](https://daily.dev/posts/ai-generative-engine-optimization-for-laravel-ldr3vzkqb) · Laravel News · 18 upvotes · 0 comments

---

Tags: [#php](https://daily.dev/tags/php), [#laravel](https://daily.dev/tags/laravel), [#domain-driven-design](https://daily.dev/tags/domain-driven-design)

[View this post on daily.dev](https://daily.dev/posts/aegis-for-laravel-scaffolding-and-validation-helpers-for-value-objects-4d6bjbkyt)
