Force https 28 Aug Laraship Questions › Category: Technical › Force https 0 Vote Up Vote Down st3fan asked 5 years ago Currently I redirect port 80 from nginx to 443, how can I do this on application level in laraship? Because a 301 redirect is not very nice. 1 Answers 1 Vote Up Vote Down laraship Staff answered 5 years ago Hello I would place this in the AppServiceProvider in the boot() method, or maybe create a ForceHttpsMiddleware if($this->app->environment('production')) { URL::forceScheme('https'); } Stefan Warmerdam replied 5 years ago Thanks, the first works great. Please login or Register to submit your answer Username or Email Address Password Remember Me