mirror of
https://github.com/Iuriiiii/Hixel.git
synced 2025-01-17 05:38:17 +01:00
31 lines
532 B
PHP
31 lines
532 B
PHP
<?php
|
|
|
|
namespace App\Providers;
|
|
|
|
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()
|
|
{
|
|
if(env('FORCE_HTTPS',false)) { // Default value should be false for local server
|
|
url()->forceScheme('https');
|
|
}
|
|
}
|
|
}
|