code-orange/turbolinks-location
最新稳定版本:v1.3
Composer 安装命令:
composer require code-orange/turbolinks-location
包简介
Laravel middleware to insert Turbolinks-Location header into every response
README 文档
README
This package contains a Laravel middleware for working with Turbolinks. It sets the Turbolinks-Location header on every response served, so that Turbolinks always shows the correct URL after redirects.
Installation
composer require code-orange/turbolinks-location
Usage
In your App\Http\Kernel, add the middleware to your web group:
use CodeOrange\TurbolinksLocation\TurbolinksLocation; class Kernel extends HttpKernel { protected $middlewareGroups = [ 'web' => [ ..., TurbolinksLocation::class ], ]; }
That's it!
All requests to routes in your web.php route file will now be served with a correct Turbolinks-Location header.
统计信息
- 总下载量: 43.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2018-06-04