Skip to content
This repository was archived by the owner on Aug 31, 2024. It is now read-only.

Commit 83c80c2

Browse files
committed
system: update readme
1 parent 467534a commit 83c80c2

File tree

5 files changed

+26
-14
lines changed

5 files changed

+26
-14
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,16 @@ SESSION_DRIVER=file
2929

3030
````markdown
3131
npm run dev
32+
php artisan migrate
3233
php artisan serve
3334
````
35+
36+
## Config
37+
38+
### Version in Blade
39+
40+
````blade
41+
@version
42+
@version('full')
43+
@version('compact')
44+
````

SECURITY.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
Use this section to tell people about which versions of your project are
66
currently 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

config/version.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
mode: 'absorb' # or 'increment'
22
blade-directive: version
33
current:
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}'

resources/views/layouts/app.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
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

resources/views/welcome.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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 -->

0 commit comments

Comments
 (0)