Laravel alle Routen auf HTTPS forcieren

/app/Providers/AppServiceProvider.php

<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\App;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //
    }

    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        if environment()) === 'production' {
            \URL::forceScheme('https');
			// For assets like yajra/laravel-datatables
            $this->app['request']->server->set('HTTPS', true);
        }
    }
}