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
1313
1414 public const PACKAGE_LARAVEL = 'nativephp/laravel ' ;
1515
16+ public const PACKAGE_PHP_BIN = 'nativephp/php-bin ' ;
17+
1618 public function __construct (
1719 private string $ package
1820 ) {}
@@ -27,6 +29,11 @@ public static function laravel(): static
2729 return new static (static ::PACKAGE_LARAVEL );
2830 }
2931
32+ public static function phpBin (): static
33+ {
34+ return new static (static ::PACKAGE_PHP_BIN );
35+ }
36+
3037 public function latestVersion ()
3138 {
3239 $ 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-
2424 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"
2525 aria-label =" Version information"
2626 >
27- {{ $electronGitHubVersion } }
27+ <a href =" /docs/desktop/1/getting-started/releasenotes" >
28+ {{ $electronGitHubVersion } }
29+ </a >
2830 </div >
2931 </div >
3032
Original file line number Diff line number Diff line change @@ -3,8 +3,33 @@ title: Release Notes
33order : 1100
44---
55
6+ ## NativePHP/electron
67@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 }}
833** Released: {{ \Carbon\Carbon::parse($release->published_at)->format('F j, Y') }}**
934
1035{{ $release->getBodyForMarkdown() }}
You can’t perform that action at this time.
0 commit comments