Add Boot Service Provider

This commit is contained in:
adesyawal 2025-03-26 15:32:34 +07:00
parent 968ace548a
commit a435a3e53a
2 changed files with 5 additions and 3 deletions

4
.env
View File

@ -1,6 +1,6 @@
APP_NAME="RSABHK" APP_NAME="RSABHK"
APP_ENV=local APP_ENV=production
APP_KEY=base64:H3PvFH63g7VMkPboCs7CYAAfCYw/3xKTtTt2AHM1TAk= APP_KEY=base64:H3PvFH63g7VMkPboCs7CYAAfCYw/3xKTtTt2AHM1TAk=
APP_DEBUG=true APP_DEBUG=true
APP_URL=https://dokter.rsabhk.co.id/ APP_URL=https://dokter.rsabhk.co.id/
@ -9,7 +9,7 @@ TIMEZONE=Asia/Jakarta
ASSET_URL=https://dokter.rsabhk.co.id/ ASSET_URL=https://dokter.rsabhk.co.id/
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_LEVEL=debug EVEL=debug
DB_CONNECTION=pgsql DB_CONNECTION=pgsql
DB_HOST=172.16.88.22 DB_HOST=172.16.88.22

View File

@ -23,6 +23,8 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
// if(config('app.env') === 'production') {
URL::forceScheme('https');
}
} }
} }