You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

31 lines
559 B

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
// Always redirect to https.
if($this->app->environment() === 'production') {
$this->app['request']->server->set('HTTPS', true);
}
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}