Enforce https using by providing an .env flag. Install with composer require "apreiml/laravel-enforce-https". Enable with echo "ENFORCE_HTTPS=true" >> .env.