n7olkachev/laravel-computed-properties
Add computed properties to your Laravel Eloquent models, calculated on the fly like accessors but excluded from the database. Keep models lean, reuse derived values across queries and serialization, and write less boilerplate.
Laravel Computed Properties lets you define computed attributes on Eloquent models using simple, attribute-based syntax. Instead of manually appending accessors, you annotate methods with #[Computed] and the package registers them automatically, so the resulting values behave like regular model attributes—serialized in arrays and JSON alongside your database columns.
#[Computed]; no manual $appends wiringtoArray() and JSON responsesHow can I help you explore Laravel packages today?