{"id":19030011,"url":"https://github.com/padosoft/laravel-https","last_synced_at":"2025-04-23T16:01:11.689Z","repository":{"id":57035034,"uuid":"132733367","full_name":"padosoft/laravel-https","owner":"padosoft","description":"laravel package to force redirect to https schema","archived":false,"fork":false,"pushed_at":"2018-08-17T14:24:57.000Z","size":28,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T01:47:28.053Z","etag":null,"topics":["https","laravel","laravel-package","redirect","ssl"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/padosoft.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-09T09:25:18.000Z","updated_at":"2021-11-12T00:11:25.000Z","dependencies_parsed_at":"2022-08-23T20:50:44.767Z","dependency_job_id":null,"html_url":"https://github.com/padosoft/laravel-https","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-https","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-https/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-https/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/padosoft%2Flaravel-https/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/padosoft","download_url":"https://codeload.github.com/padosoft/laravel-https/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250468272,"owners_count":21435451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["https","laravel","laravel-package","redirect","ssl"],"created_at":"2024-11-08T21:16:11.921Z","updated_at":"2025-04-23T16:01:11.590Z","avatar_url":"https://github.com/padosoft.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Package to force https redirect.\n\n[![Latest Version on Packagist](https://img.shields.io/packagist/v/padosoft/laravel-https.svg?style=flat-square)](https://packagist.org/packages/padosoft/laravel-https)\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)\n[![Quality Score](https://img.shields.io/scrutinizer/g/padosoft/laravel-https.svg?style=flat-square)](https://scrutinizer-ci.com/g/padosoft/laravel-https)\n[![Build Status](https://img.shields.io/travis/padosoft/laravel-https/master.svg?style=flat-square)](https://travis-ci.org/padosoft/laravel-https)\n[![Total Downloads](https://img.shields.io/packagist/dt/padosoft/laravel-https.svg?style=flat-square)](https://packagist.org/packages/padosoft/laravel-https)\n\nThis package provides a laravel middleware to force https redirect. \n\nTable of Contents\n=================\n\n   * [Laravel Package to force https redirect.](#laravel-package-to-force-https-redirect)\n      * [Requires](#requires)\n      * [Installation](#installation)\n      * [USAGE](#usage)\n      * [Change log](#change-log)\n      * [Testing](#testing)\n      * [Contributing](#contributing)\n      * [Security](#security)\n      * [Credits](#credits)\n      * [About Padosoft](#about-padosoft)\n      * [License](#license)\n\n##Requires\n  \n- \"php\" : \"\u003e=5.6.0\",\n- laravel/framework\": \"~5.2\"\n  \n## Installation\n\nYou can install the package via composer:\n``` bash\n$ composer require padosoft/laravel-https\n```\n\n### FOR LARAVEL 5.6+\nNo additional steps required because the service provider use new L5.5+ autodiscovery feature.\n\n### FOR LARAVEL \u003c=5.5\nYou must install this service provider.\n\n``` php\n// config/app.php\n'provider' =\u003e [\n    ...\n    Padosoft\\Laravel\\Https\\LaravelHttpsServiceProvider::class,\n    ...\n];\n```\n\n### publish config (optional)\nOptionally publish the packages config file by running the following from your projects root folder:\n\n```bash\n    php artisan vendor:publish --tag=laravel-https\n```\n\n### register the middleware\nAdd the middleware to your routes or controller. See Usage.\n\n\n## USAGE\n\n### From Route File:\n\nYou can include the HttpsForce in a route groups or on individual routes.\n\n### Route Group Example:\n\n``` php\n    Route::group(['middleware' =\u003e ['web', 'HttpsForce']], function () {\n        Route::get('/', 'WelcomeController@welcome');\n    });\n```\n\n### Individual Route Examples:\n\n``` php\n    Route::get('/', 'WelcomeController@welcome')-\u003emiddleware('HttpsForce');\n    Route::match(['post'], '/test', 'Testing\\TestingController@runTest')-\u003emiddleware('HttpsForce');\n```\n\n### From Controller File:\n\nYou can include the HttpsForce in the constructor of your controller file.\n\n### Controller File Example:\n\n``` php\n    /**\n     * Create a new controller instance.\n     *\n     * @return void\n     */\n    public function __construct()\n    {\n       $this-\u003emiddleware('HttpsForce');\n    }\n```\n\n## Change log\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Testing\n\n``` bash\n$ composer test\n```\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n## Security\n\nIf you discover any security related issues, please email instead of using the issue tracker.\n\n## Credits\n- [Lorenzo Padovani](https://github.com/lopadova)\n- [All Contributors](../../contributors)\n\n## About Padosoft\nPadosoft (https://www.padosoft.com) is a software house based in Florence, Italy. Specialized in E-commerce and web sites.\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadosoft%2Flaravel-https","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpadosoft%2Flaravel-https","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpadosoft%2Flaravel-https/lists"}