for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace ForceHttps;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
/**
* Perform post-registration booting of services.
*
* @return void
*/
public function boot()
if ($this->app->runningInConsole()) {
$this->publishes([
__DIR__ . '/../config/force-https.php' => config_path('force-https.php'),
], 'config');
}
* Register the service provider.
public function register()
$this->mergeConfigFrom(__DIR__ . '/../config/force-https.php', 'force-https');