order_gizi/app/Providers/AppServiceProvider.php

31 lines
696 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
Blade::component('dashboard.pesanan.components.modalExport', 'modalExport');
Blade::component('dashboard.pesanan.components.infoPesanan', 'infoPesanan');
if ($this->app->environment('production')) {
URL::forceScheme('https');
}
}
}