2017 © Pedro Peláez
 

library laravel-pjax-middleware

Enable the use of PJAX in Laravel.

image

torann/laravel-pjax-middleware

Enable the use of PJAX in Laravel.

  • Thursday, February 1, 2018
  • by torann
  • Repository
  • 1 Watchers
  • 1 Stars
  • 72 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel PJAX Middleware

Enable the use of PJAX in Laravel., (*1)

Installation

Install using composer:, (*2)

$ composer require torann/laravel-pjax-middleware

You'll then need to run composer install to download it and have the autoloader updated., (*3)

Setup

Once installed you need to append the middleware class within the Http kernel. Open up app/Http/Kernel.php and find the $middleware variable., (*4)

protected $middleware = [

    Torann\Pjax\PjaxMiddleware::class,

]

How to use

This middleware will check, before outputting 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., (*5)

Works great with flight-with-pjax and jquery.pjax.js., (*6)

The Versions

01/02 2018

dev-master

9999999-dev

Enable the use of PJAX in Laravel.

  Sources   Download

BSD-2-Clause BSD 2-Clause

The Requires

 

The Development Requires

laravel flight pjax pushstate flightjs popstate

05/08 2015

0.0.1

0.0.1.0

Enable the use of PJAX in Laravel.

  Sources   Download

BSD 2-Clause

The Requires

 

The Development Requires

laravel flight pjax pushstate flightjs popstate