We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20a3f4b commit d23f5afCopy full SHA for d23f5af
app/Providers/AppServiceProvider.php
@@ -16,6 +16,7 @@ public function register(): void {}
16
public function boot(): void
17
{
18
Sanctum::usePersonalAccessTokenModel(PersonalAccessToken::class);
19
+
20
Http::macro('github', function (string $api_url, ?string $github_access_token = null) {
21
if ($github_access_token) {
22
return Http::withHeaders([
@@ -29,7 +30,10 @@ public function boot(): void
29
30
])->baseUrl($api_url);
31
}
32
});
33
+ echo config('app.env');
34
+ if (config('app.env') === 'production') {
35
+ View::share('instanceSettings', InstanceSettings::get());
36
+ }
37
- View::share('instanceSettings', InstanceSettings::get());
38
39
0 commit comments