Dev Tools · 1h ago
New Laravel Package Unifies Inertia and API Responses
A developer released inertia-split, a Laravel package that lets controllers serve both Inertia frontend components and JSON API responses from the same method. It uses a trait and an annotation to automatically detect request type. The package avoids messy conditional checks or duplicate routes.
Meridian48 take
Useful for Laravel developers, but niche—most teams will stick with existing patterns unless they're building hybrid apps from scratch.
laravelinertiajs