stancl/virtualcolumn
stancl/virtualcolumn adds database-like “virtual columns” to Eloquent models, letting you define computed attributes that can be queried, sorted, and indexed as if they were real fields. Useful for JSON data, derived values, and cleaner, faster queries.
full_name, status_flags, total_price) without requiring database schema changes or migrationsWHERE/ORDER BY clauses (PHP-based computation can’t leverage database indexes)How can I help you explore Laravel packages today?