Commit 47e586b9 authored by Glöckler, Falko's avatar Glöckler, Falko
Browse files

Support HTTPS

parent 0c37f1f6
......@@ -19,6 +19,10 @@ class AppServiceProvider extends ServiceProvider
$user->api_token = str_random(60);
}
});
if (\Illuminate\Support\Str::contains(env('GDM_PROTOCOL')/*\Config::get('app.url')*/, 'https')) {
\URL::forceSchema('https');
//use \URL:forceSchema('https') if you use laravel < 5.4
}
}
......
......@@ -45,7 +45,8 @@ return [
| your application so that it is used when running Artisan tasks.
|
*/
'url' => env('GDM_URL'),
'url' => env('GDM_PROTOCOL')."://".env('GDM_URL'),
/*
|--------------------------------------------------------------------------
| Application Timezone
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment