File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,11 @@ <h1 class="mt-5 text-5xl font-semibold text-gray-800">Laravel Upgrade Helper</h1
67
67
< a :href ="releaseLink " target ="_blank " class ="underline italic "> link</ a >
68
68
</ div >
69
69
70
+ < div class ="text-center ">
71
+ For upgrade guide see:
72
+ < a :href ="guideLink " target ="_blank " class ="underline italic "> link</ a >
73
+ </ div >
74
+
70
75
< div class ="text-center ">
71
76
Click < a :href ="diffFileLink " download > < b class ="underline text-red "> here</ b > </ a >
72
77
to download patch file.
@@ -205,6 +210,13 @@ <h3 class="text-xl font-semibold text-gray-900 dark:text-white">
205
210
return 'https://github.com/laravel/laravel/releases/tag/' + this . upgradeVersion ;
206
211
} ,
207
212
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
+
208
220
diffFileLink ( ) {
209
221
return `diffs/${ this . baseVersion } ...${ this . upgradeVersion } .diff` ;
210
222
} ,
You can’t perform that action at this time.
0 commit comments