CWAscend

Attribute-based column watching for Laravel Eloquent models. React to specific column changes without the boilerplate of observers.

15
0
100% credibility
Found Feb 17, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
PHP
AI Summary

A Laravel package that enables attribute-based reactions to specific column changes in Eloquent models, offering fakeable, queueable handlers as an alternative to traditional observers.

How It Works

1
🕵️ Discover a smarter way

You hear about a tool that makes it easy to react only when specific parts of your data change, without messy code everywhere.

2
📦 Add the tool

You simply include this helpful package into your project with one easy step, and it's ready to use.

3
✍️ Create your reaction

You make a small, focused action class that runs whenever a certain field in your data gets updated.

4
🔗 Link it to your data

You add a simple note right on your data type, telling it to watch that field and call your action when it changes.

5
🧪 Test it out

You pretend to update the field and check that your action triggers perfectly, with easy ways to fake and verify.

6
⚙️ Handle real changes

Now, whenever users update that field, your action runs automatically—even in the background for slow tasks.

🎉 Perfect reactions

Your app now responds cleanly and reliably to data changes, making everything easier to build, test, and maintain.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 15 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is laravel-column-watcher?

Laravel-column-watcher is a PHP package for Laravel that lets you react to specific column changes in Eloquent models using simple attribute-based declarations right on the model class. It eliminates the boilerplate of traditional observers by firing focused handlers only when watched columns like status or email actually change, passing details on old and new values. Developers get queueable handlers for async tasks, fakeable testing with assertions, and CLI commands like `make:watcher` and `watcher:list`.

Why is it gaining traction?

Unlike observers, which balloon into god classes with manual change detection and hidden registrations, this delivers single-responsibility handlers visible on models without service provider setup. Key hooks include built-in faking for unit tests (assert triggered changes easily), queue support via standard Laravel interfaces, and timing options for before/after saves—perfect for notifications or validations without extra jobs. It cuts coupling and test fragility that plague observer-heavy apps.

Who should use this?

Backend Laravel devs maintaining apps with frequent model updates, like SaaS platforms auditing user role changes or e-commerce sites notifying on order status shifts. Teams writing tests for side effects from column watching, or those scaling to queued reactions without observer dispatch hacks. Avoid if you're on legacy Laravel without PHP 8.2+.

Verdict

Solid docs, 148 passing tests, and Octane compatibility make this a mature-feeling drop-in despite low 12 stars and 1.0% credibility score—try it on greenfield Laravel 11/12 projects tired of observer mess. Skip for production-critical code until adoption grows.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.