torann/laravel-pjax-middleware 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

torann/laravel-pjax-middleware

最新稳定版本:0.0.1

Composer 安装命令:

composer require torann/laravel-pjax-middleware

包简介

Enable the use of PJAX in Laravel.

README 文档

README

Enable the use of PJAX in Laravel.

Installation

Install using composer:

$ composer require torann/laravel-pjax-middleware

You'll then need to run composer install to download it and have the autoloader updated.

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.

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.

Works great with flight-with-pjax and jquery.pjax.js.

统计信息

  • 总下载量: 89
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD
  • 更新时间: 2015-08-05