承接 novay/laravel-https 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

novay/laravel-https

Composer 安装命令:

composer require novay/laravel-https

包简介

Laravel Https is middleware to force us to access Secure HTTP requests.

README 文档

README

Latest Stable Version Total Downloads License: MIT

About

Laravel Https is middleware to force us into Secure HTTP requests.

Requirements

Installation Instructions

  1. From your projects root folder in terminal run:

        composer require novay/laravel-https
  2. 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 under providers with the following:

        'providers' => [
        ...
            Novay\ForceHttps\ForceHttpsServiceProvider::class,
        ];
  3. Optionally publish the packages views, config file, and language files by running the following from your projects root folder:

        php artisan vendor:publish --tag=laravel-https
  4. 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:
    Route::group(['middleware' => ['https']], function () {
        Route::get('/', 'WelcomeController@welcome');
    });
Individual Route Examples:
    Route::get('/', 'WelcomeController@welcome')->middleware('https');
From Controller File:
  • You can include the https in the contructor of your controller file.
Controller File Example:
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
       $this->middleware('https');
    }

License

Laravel-Https is licensed under the MIT license. Enjoy!

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-27

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固