Skip to content

Commit c03ca56

Browse files
chore(config): update database, session, and ignore rules
1 parent 0f7caaf commit c03ca56

File tree

4 files changed

+26
-14
lines changed

4 files changed

+26
-14
lines changed

.gitignore

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1+
.DS_Store
2+
.env
3+
.env.backup
4+
.env.production
5+
.phpactor.json
6+
.phpunit.result.cache
7+
*.log
8+
/.fleet
9+
/.idea
10+
/.nova
111
/.phpunit.cache
12+
/.vscode
13+
/.zed
14+
/auth.json
215
/node_modules
316
/public/build
17+
/public/coverage
418
/public/hot
519
/public/storage
6-
/public/coverage
720
/storage/*.key
821
/storage/pail
922
/vendor
10-
.env
11-
.env.backup
12-
.env.production
13-
.phpactor.json
14-
.phpunit.result.cache
1523
Homestead.json
1624
Homestead.yaml
25+
Thumbs.db
1726
npm-debug.log
1827
yarn-error.log
19-
/auth.json
20-
/.fleet
21-
/.idea
22-
/.nova
23-
/.vscode
24-
/.zed

config/database.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
'busy_timeout' => null,
4141
'journal_mode' => null,
4242
'synchronous' => null,
43+
'transaction_mode' => 'DEFERRED',
4344
],
4445

4546
'mysql' => [
@@ -158,6 +159,10 @@
158159
'password' => env('REDIS_PASSWORD'),
159160
'port' => env('REDIS_PORT', '6379'),
160161
'database' => env('REDIS_DB', '0'),
162+
'max_retries' => env('REDIS_MAX_RETRIES', 3),
163+
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
164+
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
165+
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
161166
],
162167

163168
'cache' => [
@@ -167,6 +172,10 @@
167172
'password' => env('REDIS_PASSWORD'),
168173
'port' => env('REDIS_PORT', '6379'),
169174
'database' => env('REDIS_CACHE_DB', '1'),
175+
'max_retries' => env('REDIS_MAX_RETRIES', 3),
176+
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
177+
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
178+
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
170179
],
171180

172181
],

config/session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129

130130
'cookie' => env(
131131
'SESSION_COOKIE',
132-
Str::snake((string) env('APP_NAME', 'laravel')).'_session'
132+
Str::slug((string) env('APP_NAME', 'laravel')).'-session'
133133
),
134134

135135
/*

resources/views/welcome.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1">
66

7-
<title>Laravel</title>
7+
<title>{{ config('app.name', 'Laravel') }}</title>
88

99
<!-- Fonts -->
1010
<link rel="preconnect" href="https://fonts.bunny.net">

0 commit comments

Comments
 (0)