| Package Data | |
|---|---|
| Maintainer Username: | larry666 |
| Maintainer Contact: | Larry_e@163.com (Larry) |
| Package Create Date: | 2015-11-04 |
| Package Last Update: | 2015-11-04 |
| Language: | JavaScript |
| License: | MIT |
| Last Refreshed: | 2025-10-26 03:02:34 |
| Package Statistics | |
|---|---|
| Total Downloads: | 25 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 0 |
| Total Watchers: | 1 |
| Total Forks: | 0 |
| Total Open Issues: | 0 |
在 Laravel 5.* 的版本中,使用 Pjax 实现无刷新效果,以及酷炫的进度条
1.在 composer.json 的 require里 加入
"yuanchao/pjax-for-laravel-5":"dev-master" 接着执行 composer update
or
直接执行 composer require "larry666/pjax-for-laravel-5":"dev-master"
2.在config/app.php 的 providers 数组添加
Pluigns\Pjax\PjaxServiceProvider::class
3.在 app/Http/Kernel.php 的 $middleware 数组添加
Pluigns\Pjax\PjaxMiddleware::class
4.执行 php artisan vendor:publish 将视图/脚本文件拷贝到相应目录
先引入 jquery.js
在布局文件中,插入以下代码
@include('common.pjax',['target'=>'#content'])