Skip to content

Commit a7330d7

Browse files
authored
Initial commit
0 parents  commit a7330d7

File tree

371 files changed

+30905
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

371 files changed

+30905
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.php]
12+
indent_size = 4
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.env.example

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
##################################################
2+
# App
3+
##################################################
4+
APP_NAME="Laravel Skeleton"
5+
APP_ENV=local
6+
APP_DEBUG=true
7+
APP_URL=http://localhost
8+
APP_KEY=
9+
APP_PREVIOUS_KEYS=
10+
11+
##################################################
12+
# Auth
13+
##################################################
14+
15+
##################################################
16+
# Broadcasting
17+
##################################################
18+
BROADCAST_CONNECTION=reverb
19+
20+
##################################################
21+
# Cache
22+
##################################################
23+
CACHE_STORE=redis
24+
25+
##################################################
26+
# Database
27+
##################################################
28+
DB_CONNECTION=sqlite
29+
REDIS_HOST=redis
30+
REDIS_PASSWORD=null
31+
REDIS_PORT=6379
32+
33+
##################################################
34+
# Docker
35+
##################################################
36+
APP_SERVICE=laravel-skeleton-vue
37+
APP_PORT=80
38+
VITE_PORT=5173
39+
FORWARD_REVERB_PORT=8080
40+
FORWARD_REDIS_PORT=6379
41+
FORWARD_MINIO_PORT=9000
42+
FORWARD_MINIO_CONSOLE_PORT=8900
43+
FORWARD_MAILPIT_PORT=1025
44+
FORWARD_MAILPIT_DASHBOARD_PORT=8025
45+
46+
##################################################
47+
# Filesystem
48+
##################################################
49+
FILESYSTEM_DISK=s3
50+
AWS_ACCESS_KEY_ID=sail
51+
AWS_SECRET_ACCESS_KEY=password
52+
AWS_DEFAULT_REGION=us-east-1
53+
AWS_BUCKET=local
54+
AWS_URL=http://localhost:${FORWARD_MINIO_PORT}/local
55+
AWS_ENDPOINT=http://minio:${FORWARD_MINIO_PORT}
56+
AWS_USE_PATH_STYLE_ENDPOINT=true
57+
58+
##################################################
59+
# Hashing
60+
##################################################
61+
HASH_DRIVER=bcrypt
62+
BCRYPT_ROUNDS=12
63+
64+
##################################################
65+
# Logging
66+
##################################################
67+
LOG_CHANNEL=stack
68+
LOG_DEPRECATIONS_CHANNEL=null
69+
LOG_STACK=daily
70+
LOG_LEVEL=debug
71+
72+
##################################################
73+
# Mail
74+
##################################################
75+
MAIL_MAILER=smtp
76+
MAIL_HOST=mailpit
77+
MAIL_PORT=1025
78+
MAIL_ENCRYPTION=null
79+
MAIL_USERNAME=null
80+
MAIL_PASSWORD=null
81+
MAIL_FROM_ADDRESS="[email protected]"
82+
MAIL_FROM_NAME="${APP_NAME}"
83+
84+
##################################################
85+
# Queue
86+
##################################################
87+
QUEUE_CONNECTION=sync
88+
REDIS_QUEUE_RETRY_AFTER=3600
89+
90+
##################################################
91+
# Reverb
92+
##################################################
93+
REVERB_APP_ID=my-app-id
94+
REVERB_APP_KEY=my-app-key
95+
REVERB_APP_SECRET=my-app-secret
96+
REVERB_HOST=localhost
97+
REVERB_PORT=8080
98+
REVERB_SCHEME=http
99+
100+
##################################################
101+
# Services
102+
##################################################
103+
104+
##################################################
105+
# Session
106+
##################################################
107+
SESSION_DRIVER=redis
108+
SESSION_LIFETIME=120
109+
SESSION_ENCRYPT=true
110+
111+
##################################################
112+
# Vite
113+
##################################################
114+
VITE_APP_NAME="${APP_NAME}"
115+
VITE_REVERB_APP_KEY="${REVERB_APP_KEY}"
116+
VITE_REVERB_HOST="${REVERB_HOST}"
117+
VITE_REVERB_PORT="${REVERB_PORT}"
118+
VITE_REVERB_SCHEME="${REVERB_SCHEME}"

.gitattributes

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* text=auto eol=lf
2+
3+
*.blade.php diff=html
4+
*.css diff=css
5+
*.html diff=html
6+
*.md diff=markdown
7+
*.php diff=php
8+
9+
/.github export-ignore
10+
CHANGELOG.md export-ignore
11+
.styleci.yml export-ignore

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: 'github-actions'
5+
directory: '/'
6+
schedule:
7+
interval: 'weekly'

.github/workflows/changelog.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Update Changelog
2+
3+
on:
4+
release:
5+
types: [released]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
update:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
with:
18+
ref: main
19+
20+
- name: Update changelog
21+
uses: stefanzweifel/changelog-updater-action@v1
22+
with:
23+
latest-version: ${{ github.event.release.name }}
24+
release-notes: ${{ github.event.release.body }}
25+
26+
- name: Commit updated CHANGELOG
27+
uses: stefanzweifel/git-auto-commit-action@v5
28+
with:
29+
branch: ${{ github.event.release.target_commitish }}
30+
commit_message: Update CHANGELOG
31+
file_pattern: CHANGELOG.md
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Setup Project
2+
description: 'Initialize the project with PHP and Node.js dependencies'
3+
4+
runs:
5+
using: composite
6+
steps:
7+
- name: Setup PHP
8+
uses: shivammathur/setup-php@v2
9+
with:
10+
php-version: 8.4
11+
12+
- name: Cache composer dependencies
13+
uses: actions/cache@v4
14+
with:
15+
path: vendor
16+
key: composer-${{ hashFiles('composer.lock') }}
17+
18+
- name: Install composer dependencies
19+
run: composer install --no-interaction --prefer-dist --optimize-autoloader
20+
shell: bash
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: 22
26+
27+
- name: Cache npm dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: node_modules
31+
key: npm-${{ hashFiles('package-lock.json') }}
32+
33+
- name: Install npm dependencies
34+
run: npm ci
35+
shell: bash

.github/workflows/standards.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Code Standards
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: standards-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
standards:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup project
22+
uses: ./.github/workflows/setup-project
23+
24+
- name: Cache Rector
25+
uses: actions/cache@v4
26+
with:
27+
path: /tmp/rector
28+
key: ${{ runner.os }}-rector-${{ github.run_id }}
29+
restore-keys: ${{ runner.os }}-rector-
30+
31+
- name: Format code
32+
run: npm run lint && npm run format && composer rector && composer pint
33+
34+
- name: Cache PHPStan
35+
uses: actions/cache@v4
36+
with:
37+
path: /tmp/phpstan
38+
key: ${{ runner.os }}-phpstan-${{ github.run_id }}
39+
restore-keys: ${{ runner.os }}-phpstan-
40+
41+
- name: Analyse code
42+
run: composer stan
43+
44+
- name: Commit changes
45+
uses: stefanzweifel/git-auto-commit-action@v5
46+
with:
47+
commit_message: 'Fix styling'

.github/workflows/tests.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
release:
8+
types: [created]
9+
10+
concurrency:
11+
group: tests-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
tests:
16+
runs-on: ubuntu-latest
17+
if: "!contains(github.event.head_commit.message, 'Update CHANGELOG')"
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- name: Setup project
24+
uses: ./.github/workflows/setup-project
25+
26+
- name: Compile assets
27+
run: npm run build
28+
29+
- name: Prepare application
30+
run: |
31+
cp .env.example .env
32+
php artisan key:generate
33+
34+
- name: Run tests
35+
run: composer test

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/.phpunit.cache
2+
/node_modules
3+
/public/build
4+
/public/hot
5+
/public/storage
6+
/storage/*.key
7+
/vendor
8+
.env
9+
.env.backup
10+
.env.production
11+
.phpunit.result.cache
12+
Homestead.json
13+
Homestead.yaml
14+
auth.json
15+
npm-debug.log
16+
yarn-error.log
17+
/.fleet
18+
/.idea
19+
/.vscode
20+
.DS_Store
21+
lang/php_*.json

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"arrowParens": "always",
3+
"bracketSameLine": false,
4+
"bracketSpacing": true,
5+
"endOfLine": "lf",
6+
"plugins": [
7+
"prettier-plugin-tailwindcss"
8+
],
9+
"printWidth": 80,
10+
"semi": false,
11+
"singleQuote": true,
12+
"tabWidth": 2,
13+
"trailingComma": "es5",
14+
"useTabs": false
15+
}

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Changelog

0 commit comments

Comments
 (0)