PHPackages                             shin1x1/laravel-force-https-url-scheme - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. shin1x1/laravel-force-https-url-scheme

ActiveLibrary[HTTP &amp; Networking](/categories/http)

shin1x1/laravel-force-https-url-scheme
======================================

Force https url schema middleware for Laravel 5

v1.1.0(10y ago)2726.6k3[1 issues](https://github.com/shin1x1/laravel-force-https-url-scheme/issues)[1 PRs](https://github.com/shin1x1/laravel-force-https-url-scheme/pulls)MITPHPPHP &gt;5.4.0

Since Apr 16Pushed 8y ago2 watchersCompare

[ Source](https://github.com/shin1x1/laravel-force-https-url-scheme)[ Packagist](https://packagist.org/packages/shin1x1/laravel-force-https-url-scheme)[ Docs](https://github.com/shin1x1/laravel-force-https-url-scheme)[ RSS](/packages/shin1x1-laravel-force-https-url-scheme/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

laravel-force-https-url-scheme
==============================

[](#laravel-force-https-url-scheme)

Force https url schema middleware for Laravel 5

[![Build Status](https://camo.githubusercontent.com/ebe59a64339f28cbe4e106a2ff1e15eb0e8e1b3f4eab85eed81a94240c18a304/68747470733a2f2f7472617669732d63692e6f72672f7368696e3178312f6c61726176656c2d666f7263652d68747470732d75726c2d736368656d652e7376673f6272616e63683d747261766973)](https://travis-ci.org/shin1x1/laravel-force-https-url-scheme)[![Latest Stable Version](https://camo.githubusercontent.com/b0a20f1c95a808127c70caed11a816be898b6752560cdb10692866016b245635/68747470733a2f2f706f7365722e707567782e6f72672f7368696e3178312f6c61726176656c2d666f7263652d68747470732d75726c2d736368656d652f76657273696f6e2e737667)](https://packagist.org/packages/shin1x1/laravel-force-https-url-scheme)

Install
-------

[](#install)

```
$ composer require shin1x1/laravel-force-https-url-scheme

```

Usage
-----

[](#usage)

This package provide to redirect http to https. It's implemented `Illuminate\Contracts\Routing\Middleware` interface that means you can use it as Laravel middleware. This feature is enabled in `production` environments only.

### As global HTTP middleware

[](#as-global-http-middleware)

- app/Http/Kernel.php

```
