This commit is contained in:
Andras Bacsai 2024-07-12 12:59:53 +02:00
parent 20a3f4b200
commit d23f5af957

View File

@ -16,6 +16,7 @@ public function register(): void {}
public function boot(): void
{
Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
Http::macro('github', function (string $api_url, ?string $github_access_token = null) {
if ($github_access_token) {
return Http::withHeaders([
@ -29,7 +30,10 @@ public function boot(): void
])->baseUrl($api_url);
}
});
echo config('app.env');
if (config('app.env') === 'production') {
View::share('instanceSettings', InstanceSettings::get());
}
View::share('instanceSettings', InstanceSettings::get());
}
}