2017 © Pedro Peláez
 

library turbolinks-location

Laravel middleware to insert Turbolinks-Location header into every response

image

code-orange/turbolinks-location

Laravel middleware to insert Turbolinks-Location header into every response

  • Monday, June 4, 2018
  • by timvdalen
  • Repository
  • 3 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Turbolinks Location middleware for Laravel

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., (*1)

Installation

composer require code-orange/turbolinks-location

Usage

In your App\Http\Kernel, add the middleware to your web group:, (*2)

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., (*3)

The Versions

04/06 2018

dev-master

9999999-dev

Laravel middleware to insert Turbolinks-Location header into every response

  Sources   Download

Apache-2.0

The Requires

 

by Tim van Dalen

04/06 2018

v1.0

1.0.0.0

Laravel middleware to insert Turbolinks-Location header into every response

  Sources   Download

Apache-2.0

The Requires

 

by Tim van Dalen