app/Providers/AppServiceProvider.php
/**
     * Bootstrap any application services.
     *
     * @return void
     */
Bootstrap any application services.
@return void
Bootstrap any application services . @return void
public function boot()
    {
        if($this->app->request->header('x-forwarded-proto') == 'https')
        {
            URL::forceScheme('https');
            $this->app['request']->server->set('HTTPS', 'on');
        }
    }
public function boot ( ) { if ( $ this -> app -> request -> header ( 'x-forwarded-proto' ) == 'https' ) { URL :: forceScheme ( 'https' ) ; $ this -> app [ 'request' ] -> server -> set ( 'HTTPS' , 'on' ) ; } }
Bootstrap any application services.
Bootstrap any application services .