lucasbedout/detective
Detective is a Laravel package for inspecting and diagnosing application behavior, giving developers a clearer view of what happens under the hood so debugging and development investigations are faster and easier.
Architecture fit
when() chains in controllers.Integration feasibility
composer require plus provider registration and trait inclusion.app/ or a private package.Technical risk
Key questions
composer.json, and is illuminate/support bounded or open-ended?whereRaw?Stack fit
Filter base class plus a Filterable trait) and keep the framework at its current version.Migration path
Filterable trait with explicit per-model $filters allowlist, typed filter methods, and a single applyFilters(Builder, array) entry point. Add contract tests asserting each supported filter maps to expected SQL.Compatibility
str_*, array_*), Illuminate\Support\Str method changes, and container binding semantics.extra.laravel) exists; if not, manual provider registration and facade aliasing are required.whereHas, with, and macro registration should be exercised explicitly, not assumed.Sequencing
Maintenance
Support
Scaling
whereHas subqueries on large tables.Failure modes
Ramp-up
How can I help you explore Laravel packages today?