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 c7d8015 commit f0656e7Copy full SHA for f0656e7
app/Providers/AppServiceProvider.php
@@ -26,11 +26,10 @@ public function boot(): void
26
27
private function registerSharedViewVariables(): void
28
{
29
- if (app()->environment('production')) {
30
- View::share('electronGitHubVersion', GitHub::electron()->latestVersion());
31
- } else {
32
- View::share('electronGitHubVersion', 'dev');
33
- }
+ View::share('electronGitHubVersion', app()->environment('production')
+ ? GitHub::electron()->latestVersion()
+ : 'dev'
+ );
34
View::share('discordLink', 'https://discord.gg/X62tWNStZK');
35
View::share('bskyLink', 'https://bsky.app/profile/nativephp.bsky.social');
36
View::share('openCollectiveLink', 'https://opencollective.com/nativephp');
0 commit comments