Download the PHP package novay/laravel-https without Composer
On this page you can find all versions of the php package novay/laravel-https. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download novay/laravel-https
More information about novay/laravel-https
Files in novay/laravel-https
Package laravel-https
Short Description Laravel Https is middleware to force us to access Secure HTTP requests.
License MIT
Informations about the package laravel-https
Laravel Force HTTPS
- About
- Requirements
- Installation Instructions
- Configuration
- Usage
- From Route File
- Route Group Example
- Individual Route Examples
- From Controller File
- Controller File Example
- From Route File
- License
About
Laravel Https is middleware to force us into Secure HTTP requests.
Requirements
Installation Instructions
-
From your projects root folder in terminal run:
-
Register the package
-
Laravel 5.5 and up Uses package auto discovery feature, no need to edit the
config/app.php
file. - Laravel 5.4 and below
Register the package with laravel in
config/app.php
underproviders
with the following:
-
-
Optionally publish the packages views, config file, and language files by running the following from your projects root folder:
- Add the middleware to your routes or controller. See Usage.
Configuration
laravel-https can be configured in directly in /config/laravel-https.php
if you published the assets.
Or you can variables to your .env
file.
Usage
From Route File:
- You can include the
https
in a route groups or on individual routes.
Route Group Example:
Individual Route Examples:
From Controller File:
- You can include the
https
in the contructor of your controller file.
Controller File Example:
License
Laravel-Https is licensed under the MIT license. Enjoy!