Skip to content
This repository has been archived by the owner on Feb 6, 2022. It is now read-only.

lz8878/turbolinks-laravel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Turbolinks Laravel

Turbolinks Laravel 可以让你在 Laravel 应用中使用 Turbolinks。 编码实现参考:turbolinks-rails

环境要求

  • laravel >= 5.5
  • turbolinks >= 5.1.0

安装

composer require "lym125/turbolinks-laravel"

使用

  1. 安装 turbolinks

  2. 在你的 Laravel 应用中找到 app/Http/Kernel.php 文件,然后注册中间件。

protected $routeMiddleware = [
    ...
    'turbolinks' => \Lym125\Turbolinks\Turbolinks::class,
];
  1. 在路由中使用注册的 turbolinks 中间件。
Route::group(['middleware' => ['turbolinks']], function () {
    //
});
  1. 更多使用方式

About

Turbolinks for laravel

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages