File tree Expand file tree Collapse file tree 3 files changed +36
-2
lines changed
docs/desktop/1/getting-started Expand file tree Collapse file tree 3 files changed +36
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ class GitHub
13
13
14
14
public const PACKAGE_LARAVEL = 'nativephp/laravel ' ;
15
15
16
+ public const PACKAGE_PHP_BIN = 'nativephp/php-bin ' ;
17
+
16
18
public function __construct (
17
19
private string $ package
18
20
) {}
@@ -27,6 +29,11 @@ public static function laravel(): static
27
29
return new static (static ::PACKAGE_LARAVEL );
28
30
}
29
31
32
+ public static function phpBin (): static
33
+ {
34
+ return new static (static ::PACKAGE_PHP_BIN );
35
+ }
36
+
30
37
public function latestVersion ()
31
38
{
32
39
$ release = Cache::remember (
Original file line number Diff line number Diff line change @@ -24,7 +24,9 @@ class="mx-auto flex w-full max-w-5xl items-center justify-between gap-5 rounded-
24
24
class =" hidden rounded-full bg-gray-200/60 px-2 py-1 text-xs text-gray-600 lg:block dark:bg-[#16182b] dark:text-[#747ee6] dark:ring-1 dark:ring-cloud"
25
25
aria-label =" Version information"
26
26
>
27
- {{ $electronGitHubVersion } }
27
+ <a href =" /docs/desktop/1/getting-started/releasenotes" >
28
+ {{ $electronGitHubVersion } }
29
+ </a >
28
30
</div >
29
31
</div >
30
32
Original file line number Diff line number Diff line change @@ -3,8 +3,33 @@ title: Release Notes
3
3
order : 1100
4
4
---
5
5
6
+ ## NativePHP/electron
6
7
@forelse (\App\Support\GitHub::electron()->releases()->take(10) as $release)
7
- ## {{ $release->name }}
8
+ ### {{ $release->name }}
9
+ ** Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
10
+
11
+ {{ $release->getBodyForMarkdown() }}
12
+ ---
13
+ @empty
14
+ ## We couldn't show you the latest release notes at this time.
15
+ Not to worry, you can head over to GitHub to see the [ latest release notes] ( https://github.com/NativePHP/electron/releases ) .
16
+ @endforelse
17
+
18
+ ## NativePHP/laravel
19
+ @forelse (\App\Support\GitHub::laravel()->releases()->take(10) as $release)
20
+ ### {{ $release->name }}
21
+ ** Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
22
+
23
+ {{ $release->getBodyForMarkdown() }}
24
+ ---
25
+ @empty
26
+ ## We couldn't show you the latest release notes at this time.
27
+ Not to worry, you can head over to GitHub to see the [ latest release notes] ( https://github.com/NativePHP/electron/releases ) .
28
+ @endforelse
29
+
30
+ ## NativePHP/php-bin
31
+ @forelse (\App\Support\GitHub::phpBin()->releases()->take(10) as $release)
32
+ ### {{ $release->name }}
8
33
** Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
9
34
10
35
{{ $release->getBodyForMarkdown() }}
You can’t perform that action at this time.
0 commit comments