Force https

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
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')) {
Stefan Warmerdam replied 5 years ago

Thanks, the first works great.