src/Middleware/ForceHttps.php
public function handle($request, \Closure $next)
    {
        if (config('app.force_https', false)) {
            $request->server->set('HTTPS', true);
            app('url')->forceScheme('https');

            if (class_exists('\\Roumen\\Asset\\Asset')) {
                \Roumen\Asset\Asset::$secure = true;
            }
        }

        return $next($request);
    }
public function handle($request, \Closure $next)
    {
        if (config('app.force_https', false)) {
            $request->server->set('HTTPS', true);
            app('url')->forceScheme('https');

            if (class_exists('\\Roumen\\Asset\\Asset')) {
                \Roumen\Asset\Asset::$secure = true;
            }
        }

        return $next($request);
    }
Handle an incoming request.

@param \Illuminate\Http\Request $request
@param \Closure                 $next

@return mixed