Enabling https on production server for Laravel 5.3 using cloudflare

Use \URL::forceSchema('https');

For example: edit AppServiceProvider.php and add to the boot() function:

if (getenv('APP_ENV') == 'production') {
        \URL::forceSchema('https');
    }