| Install | |
|---|---|
composer require simonstamm/laravel-pjax |
|
| Latest Version: | v0.5 |
| PHP: | >=5.3.0 |
| License: | MIT |
| Last Updated: | Dec 31, 2013 |
| Links: | GitHub · Packagist |
Enable the use of PJAX in Laravel 4 with redirections.
Add simonstamm/laravel-pjax to require section in your composer.json
composer require simonstamm/laravel-pjax
Add 'SimonStamm\LaravelPjax\LaravelPjaxServiceProvider', to providers in your app/config/app.php
This service provider will check, before output the http response, for the X-PJAX's
header in the request. If found, it will crawl the response to return the requested
element defined by X-PJAX-Container's header.
Works great with jquery.pjax.js.
I'm open to any idea of features to add to it.