Skip to content

Commit d23f5af

Browse files
committed
hmmm
1 parent 20a3f4b commit d23f5af

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/Providers/AppServiceProvider.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function register(): void {}
1616
public function boot(): void
1717
{
1818
Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
19+
1920
Http::macro('github', function (string $api_url, ?string $github_access_token = null) {
2021
if ($github_access_token) {
2122
return Http::withHeaders([
@@ -29,7 +30,10 @@ public function boot(): void
2930
])->baseUrl($api_url);
3031
}
3132
});
33+
echo config('app.env');
34+
if (config('app.env') === 'production') {
35+
View::share('instanceSettings', InstanceSettings::get());
36+
}
3237

33-
View::share('instanceSettings', InstanceSettings::get());
3438
}
3539
}

0 commit comments

Comments
 (0)