admin-panel-zimbra-api/app/Providers/AppServiceProvider.php
Nguyen Van Nguyen e9f0a9ec2c first commit
Signed-off-by: Nguyen Van Nguyen <nguyennv1981@gmail.com>
2024-04-22 14:45:23 +07:00

41 lines
839 B
PHP

<?php declare(strict_types=1);
/**
* This file is part of the Zimbra Admin Panel project.
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace App\Providers;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
/**
* App service provider class
*
* @package App
* @category Providers
* @author Nguyen Van Nguyen - nguyennv1981@gmail.com
*/
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
if ((bool) env('FORCE_HTTPS', false)) {
URL::forceScheme('https');
}
}
}