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
其他信息
- 授权协议: BSD
- 更新时间: 2015-08-05