Skip to content

Commit 92f9745

Browse files
committed
add laravel upgrade link
1 parent 3176306 commit 92f9745

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

index.html

+12
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
6767
<a :href="releaseLink" target="_blank" class="underline italic">link</a>
6868
</div>
6969

70+
<div class="text-center">
71+
For upgrade guide see:
72+
<a :href="guideLink" target="_blank" class="underline italic">link</a>
73+
</div>
74+
7075
<div class="text-center">
7176
Click <a :href="diffFileLink" download><b class="underline text-red">here</b></a>
7277
to download patch file.
@@ -205,6 +210,13 @@ <h3 class="text-xl font-semibold text-gray-900 dark:text-white">
205210
return 'https://github.com/laravel/laravel/releases/tag/' + this.upgradeVersion;
206211
},
207212

213+
guideLink() {
214+
const majorVersion = this.upgradeVersion.split('.').pop();
215+
const version = majorVersion >= 6 ? majorVersion + '.x' : this.upgradeVersion.split('.').slice(1, 3).join('.');
216+
217+
return 'https://laravel.com/docs/' + version + '/upgrade';
218+
},
219+
208220
diffFileLink() {
209221
return `diffs/${this.baseVersion}...${this.upgradeVersion}.diff`;
210222
},

0 commit comments

Comments
 (0)