By default Laravel generates URLs with HTTP instead of HTTPS.

This is great when developing locally on your machine, but on a production server you probably got Let's Encrypt and HTTPS.

Forcing HTTP from AppServiceProvider


namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
     * Register any application services.
     * @return void
    public function register()
        if (env('APP_ENV') === 'production') {