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