Skip to content

Commit b7b7b84

Browse files
committed
fixes driver
1 parent 7971a37 commit b7b7b84

4 files changed

Lines changed: 18 additions & 7 deletions

File tree

.env.example

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ DB_CONNECTION=sqlite
2727
# DB_USERNAME=root
2828
# DB_PASSWORD=
2929

30-
SESSION_DRIVER=database
30+
SESSION_DRIVER=file
3131
SESSION_LIFETIME=120
3232
SESSION_ENCRYPT=false
3333
SESSION_PATH=/
3434
SESSION_DOMAIN=null
3535

3636
BROADCAST_CONNECTION=log
3737
FILESYSTEM_DISK=local
38-
QUEUE_CONNECTION=database
38+
QUEUE_CONNECTION=sync
3939

40-
CACHE_STORE=database
40+
CACHE_STORE=file
4141
# CACHE_PREFIX=
4242

4343
MEMCACHED_HOST=127.0.0.1

config/cache.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@
1313
| framework. This connection is utilized if another isn't explicitly
1414
| specified when running a cache operation inside the application.
1515
|
16+
| This site has no database. The cache exists only to memoise the parsed
17+
| documentation markdown, which is per-container and disposable, so the
18+
| file store is the right fit — and it needs nothing provisioned.
19+
|
1620
*/
1721

18-
'default' => env('CACHE_STORE', 'database'),
22+
'default' => env('CACHE_STORE', 'file'),
1923

2024
/*
2125
|--------------------------------------------------------------------------

config/queue.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
| API, giving you convenient access to each backend using identical
1212
| syntax for each. The default queue connection is defined below.
1313
|
14+
| Nothing here is queued, but "database" would fail the same way the
15+
| cache did the moment anything ever was.
16+
|
1417
*/
1518

16-
'default' => env('QUEUE_CONNECTION', 'database'),
19+
'default' => env('QUEUE_CONNECTION', 'sync'),
1720

1821
/*
1922
|--------------------------------------------------------------------------

config/session.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,18 @@
1111
|
1212
| This option determines the default session driver that is utilized for
1313
| incoming requests. Laravel supports a variety of storage options to
14-
| persist session data. Database storage is a great default choice.
14+
| persist session data.
15+
|
16+
| The site has no forms, no authentication and no database. Files keep
17+
| the session store working without anything to provision, and without
18+
| the surprises "array" would spring the day a form does appear.
1519
|
1620
| Supported: "file", "cookie", "database", "memcached",
1721
| "redis", "dynamodb", "array"
1822
|
1923
*/
2024

21-
'driver' => env('SESSION_DRIVER', 'database'),
25+
'driver' => env('SESSION_DRIVER', 'file'),
2226

2327
/*
2428
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)