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

Commit 03520ad

Browse files
committed
feat: add verion and setup file
1 parent a217848 commit 03520ad

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,32 @@
22
A laravel bootstrap template with jetstream
33

44
[![SL Scan](https://github.com/lightszentip/laravel-boostrap/actions/workflows/shiftleft.yml/badge.svg?branch=main)](https://github.com/lightszentip/laravel-boostrap/actions/workflows/shiftleft.yml)
5+
6+
[toc]
7+
8+
## First Setup
9+
10+
````shell
11+
cp .env.example .env
12+
php artisan key:generate
13+
npm run install
14+
composer install
15+
````
16+
17+
## Setup Database
18+
19+
For SQL Lite edit the .env:
20+
21+
````text
22+
DB_CONNECTION=sqlite
23+
DB_DATABASE=database/database.sqlite
24+
SESSION_DRIVER=file
25+
````
26+
27+
## Start
28+
29+
30+
````markdown
31+
npm run dev
32+
php artisan serve
33+
````

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()}} Test @version</span></div>
26+
<div class="md:visible ribbon ribbon-top-left"><span>{{App::environment()}} @version</span></div>
2727
@endif
2828
<x-jet-banner/>
2929

resources/views/layouts/guest.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@
6363
</head>
6464
<body class="text-center">
6565
@if( !App::environment(['Production','prd','PROD']))
66-
<div class="invisible md:visible ribbon ribbon-top-left"><span>{{App::environment()}} Test</span></div>
67-
<div class="ribbon ribbon-top-right"><span>{{App::environment()}} Test</span></div>
66+
<div class="invisible md:visible ribbon ribbon-top-left"><span>{{App::environment()}} @version</span></div>
67+
<div class="ribbon ribbon-top-right"><span>{{App::environment()}} @version</span></div>
6868
@endif
6969

7070

resources/views/welcome.blade.php

Lines changed: 2 additions & 2 deletions
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()}} Test</span></div>
38+
<div class="md:visible ribbon ribbon-top-left"><span>{{App::environment()}} @version</span></div>
3939
@endif
4040
<nav class="navbar navbar-expand-sm navbar-light bg-light border-bottom">
4141
<!-- Navbar content -->
@@ -114,7 +114,7 @@ class="bi bi-brightness-high" viewBox="0 0 16 16">
114114
v{{ Illuminate\Foundation\Application::VERSION }} (PHP v{{ PHP_VERSION }}
115115
) </p>
116116
@endif
117-
&copy; Tobi 2021-<?php echo date("Y"); ?>
117+
&copy; lighszentip 2021-<?php echo date("Y"); ?>
118118
</div>
119119
</footer>
120120
</div>

0 commit comments

Comments
 (0)