orchestra/database
Orchestra Database extends Laravel’s database layer for Orchestra Platform, providing helpers and integration for connections, schema, migrations, and query features. Useful for building and maintaining app data structures consistently across Orchestra-based projects.
remember() and rememberForever() macros to cache query results, reducing database load for read-heavy applications (e.g., dashboards, analytics, or frequently accessed data).--path and `--realpath** support for migrations to streamline team workflows, especially in monorepos or modular projects where migrations are split across directories.MigrationServiceProvider) to align with Laravel’s native offerings, reducing technical debt in long-running projects.CacheDecorator exceptions) for cached queries to ensure graceful degradation in distributed systems.spatie/laravel-query-builder or native Laravel features).remember() macros.fresh, refresh with path support).Container calls, static functions).For Executives: "This package lets us cache frequent database queries (e.g., user profiles, product listings) with minimal code changes, cutting backend load by 30–50% in benchmarks. It also standardizes migration workflows across teams, reducing onboarding time for new devs. The tradeoff is a small dependency, but the performance gains for our API-heavy services justify it."
For Engineering: *"Orchestra’s database package gives us:
remember()) to offload reads from the DB.For Developers:
*"Add this to composer.json and register SearchServiceProvider/CachableQueryServiceProvider. Now you can cache queries like:
User::remember(60)->where('active', true)->get();
And run migrations with custom paths:
php artisan migrate --path=modules/auth/database/migrations
It’s lightweight but powerful for common pain points."*
How can I help you explore Laravel packages today?