2020-04-09 13:05:23 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Providers;
|
|
|
|
|
|
2020-04-14 15:58:24 +02:00
|
|
|
use Illuminate\Support\Facades\URL;
|
2020-04-09 13:05:23 +02:00
|
|
|
use Illuminate\Support\ServiceProvider;
|
|
|
|
|
|
|
|
|
|
class AppServiceProvider extends ServiceProvider
|
|
|
|
|
{
|
|
|
|
|
/**
|
|
|
|
|
* Register any application services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function register()
|
|
|
|
|
{
|
|
|
|
|
//
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Bootstrap any application services.
|
|
|
|
|
*
|
|
|
|
|
* @return void
|
|
|
|
|
*/
|
|
|
|
|
public function boot()
|
|
|
|
|
{
|
2020-04-14 15:58:24 +02:00
|
|
|
if (!app()->environment('local')) {
|
|
|
|
|
URL::forceScheme('https');
|
|
|
|
|
}
|
2020-04-09 13:05:23 +02:00
|
|
|
}
|
|
|
|
|
}
|