Looking to hire Laravel developers? Try LaraJobs

laravel-coherence maintained by geanruca

Description
A Laravel package for AI-based data coherence validation in you Eloquent Models
Author
Last update
2025/05/19 21:41 (dev-main)
License
Links
Downloads
1

Comments
comments powered by Disqus

Laravel Coherence

Laravel Coherence is a developer tool that uses AI (via Prism) to validate whether the attributes of your Eloquent models are logically coherent before they are saved. It's useful for catching absurd or invalid values early, especially in data-critical applications.


🚀 Features

  • 🔎 Coherence validation using LLMs (OpenAI, etc.)
  • 📚 Automatic or manual model description
  • 🧠 Dynamic prompt generation with model context
  • 🛑 Strict mode (throws exception) or safe mode (logs result)
  • 📋 Polymorphic logging of all coherence checks

📦 Installation

composer require geanruca/laravel-coherence