File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed
resources/views/docs/desktop/1/getting-started Expand file tree Collapse file tree 2 files changed +33
-1
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 @@ -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