From 85d679ef5a348fa5158bbee4833b48287212eda0 Mon Sep 17 00:00:00 2001 From: Alexandr Chernyaev Date: Sun, 1 Dec 2024 04:51:12 +0300 Subject: [PATCH] Automatically display the latest version on the library upgrade page. --- resources/views/library/upgrade.blade.php | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/resources/views/library/upgrade.blade.php b/resources/views/library/upgrade.blade.php index 4bd3e320..d81706ef 100644 --- a/resources/views/library/upgrade.blade.php +++ b/resources/views/library/upgrade.blade.php @@ -12,16 +12,27 @@ которого необходимо придерживаться. - +
- 7.x - 8.x - 9.x - 10.x + @php + $version = \Str::of(\App\Docs::DEFAULT_VERSION)->before('.')->toString(); + @endphp + + @foreach(collect()->range(0,3)->reverse() as $index) + $index === 0, + ])> + {{ $version - $index }}.x + + @endforeach
+ @php $sections = collect([ "security",