Add Boot Service Provider
This commit is contained in:
parent
968ace548a
commit
a435a3e53a
4
.env
4
.env
@ -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
|
||||||
|
|||||||
@ -23,6 +23,8 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
*/
|
*/
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
//
|
if(config('app.env') === 'production') {
|
||||||
|
URL::forceScheme('https');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user