GithubHelp home page GithubHelp logo

brucewu16899 / pjax-for-laravel-5 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from endachao/pjax-for-laravel-5

0.0 2.0 0.0 74 KB

pjax for laravel 5.*

License: MIT License

PHP 5.95% CSS 3.52% JavaScript 90.53%

pjax-for-laravel-5's Introduction

在 Laravel 5.* 的版本中,使用 Pjax 实现无刷新效果,以及酷炫的进度条

求 star

求 star

求 star

起因

群里面的朋友老是在问 laravel 怎么和 pjax 结合,于是今天早上答应了给大家写一篇文章,到准备写的时候,发现其实挺简单的,也没有多少可写的东西,于是乎,干脆直接封装成包,大家直接安装用就好了

感谢以下开源项目

  1. jquery.pjax.js

  2. nprogress

效果

安装

1.在 composer.json 的 require里 加入

"yuanchao/pjax-for-laravel-5": "dev-master"

2.执行 composer update

3.在config/app.php 的 providers 数组加入一条

YuanChao\Pjax\EndaPjaxServiceProvider::class

4.在 Kernel$middleware 数组里添加


\YuanChao\Pjax\EndaPjaxMiddleware::class,

5.执行 php artisan vendor:publish

使用

要先引入 jquery

布局文件中,插入以下代码


@include('pjax::pjax')


交流

欢迎加入laravel学习小组交流:365969825

pjax-for-laravel-5's People

Contributors

endachao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.