This repository was archived by the owner on Aug 31, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +26
-14
lines changed Expand file tree Collapse file tree 5 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,16 @@ SESSION_DRIVER=file
2929
3030```` markdown
3131npm run dev
32+ php artisan migrate
3233php artisan serve
3334````
35+
36+ ## Config
37+
38+ ### Version in Blade
39+
40+ ```` blade
41+ @version
42+ @version('full')
43+ @version('compact')
44+ ````
Original file line number Diff line number Diff line change 55Use this section to tell people about which versions of your project are
66currently being supported with security updates.
77
8- | Version | Supported |
9- | ------- | ------------------ |
10- | 5.1. x | :white_check_mark : |
11- | 5 .0.x | : x : |
12- | 4 .0.x | : white_check_mark : |
13- | < 4.0 | :x : |
8+ | Version | PHP | Supported |
9+ | --------- | -----| -------------------- |
10+ | 1.0. x | 8.1 | :white_check_mark : |
11+ | 1 .0.x | 8.0 | : white_check_mark : |
12+ | 1 .0.x | 7.x | : x : |
13+ | < 1.0 | * | :x : |
1414
1515## Reporting a Vulnerability
1616
Original file line number Diff line number Diff line change 11mode : ' absorb' # or 'increment'
22blade-directive : version
33current :
4- label : v
4+ label :
55 major : 1
66 minor : 0
77 patch : 0
8- prerelease :
8+ prerelease : alpha
9+ format : ' {$major}.{$minor}.{$patch}-{$prerelease}'
910 buildmetadata :
10- commit : 100001
11+ commit : 1001
1112 timestamp :
1213 mode : absorb
1314 year :
@@ -45,11 +46,11 @@ format:
4546 prerelease : " {$prerelease}"
4647 buildmetadata : " {$buildmetadata}"
4748 commit : " {$commit}"
48- version : ' version {$major}.{$minor}.{$patch} (commit {$commit})'
49- version-only : ' version {$major}.{$minor}.{$patch}'
49+ version : ' {$major}.{$minor}.{$patch} (commit {$commit})'
50+ version-only : ' {$major}.{$minor}.{$patch}'
5051 # # Bracket enclosed expressions "[.?{$variable}]" are only rendered if the ?={$variable} is filled
5152 full : ' {$version-only}[.?={$prerelease}][+?={$buildmetadata}] (commit {$commit})'
52- compact : " v {$major}.{$minor}.{$patch}-{$commit}"
53+ compact : " {$major}.{$minor}.{$patch}-{$commit}"
5354 timestamp-year : ' {$timestamp.year}'
5455 timestamp-month : ' {$timestamp.month}'
5556 timestamp-day : ' {$timestamp.day}'
Original file line number Diff line number Diff line change 2323</head >
2424<body class =" font-sans antialiased" >
2525@if ( ! App:: environment ([' Production' ,' prd' ,' PROD' ]) )
26- <div class =" md:visible ribbon ribbon-top-left" ><span >{{ App:: environment () } } @version </span ></div >
26+ <div class =" md:visible ribbon ribbon-top-left" ><span >{{ App:: environment () } } @version ( ' compact ' ) </span ></div >
2727@endif
2828<x-jet-banner />
2929
Original file line number Diff line number Diff line change 3535
3636<div class =" container-fluid px-0" >
3737 @if ( ! App:: environment ([' Production' ,' prd' ,' PROD' ]) )
38- <div class =" md:visible ribbon ribbon-top-left" ><span >{{ App:: environment () } } @version </span ></div >
38+ <div class =" md:visible ribbon ribbon-top-left" ><span > < small > {{ App:: environment () } }@version ( ' compact ' )</ small > </span ></div >
3939 @endif
4040 <nav class =" navbar navbar-expand-sm navbar-light bg-light border-bottom" >
4141 <!-- Navbar content -->
You can’t perform that action at this time.
0 commit comments