spatie/laravel-pjax
Laravel middleware that detects PJAX (X-PJAX) requests and returns only the expected HTML fragments instead of full pages, enabling faster navigation with jquery-pjax. Simple composer install and add FilterIfPjax to your HTTP kernel.
Adopt if:
Look elsewhere if:
For Executives: "This package lets us deliver faster, smoother page transitions—like a mini-SPA—without rewriting our backend. For example, users can edit admin records or browse products without full page reloads, cutting perceived load time by ~30%. It’s a low-risk, high-reward upgrade that aligns with our roadmap for incremental UX improvements."
For Engineering: *"Spatie’s PJAX middleware integrates cleanly with Laravel’s middleware stack. It’s lightweight (~1KB), MIT-licensed, and supports both jQuery and Vue (via community adapters). We’d use it to:
/admin/users/{id}).How can I help you explore Laravel packages today?