Skip to content

Commit 31163a2

Browse files
committed
refactor: revert createOrUpdateConfigFile changes
1 parent bd48c0b commit 31163a2

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed

src/Commands/InitCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ public function handle(): void
105105
if ($this->authType === AuthTypeEnum::Clerk) {
106106
$this->enableClerk();
107107

108+
$this->createOrUpdateConfigFile('.env.development', '=', [
109+
'AUTH_GUARD' => 'clerk',
110+
]);
111+
108112
$this->createOrUpdateConfigFile($envFile, '=', [
109113
'AUTH_GUARD' => 'clerk',
110114
]);

tests/InitCommandTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ public function testRunWithAdminAndDefaultReadmeCreation()
171171
'arguments' => ['config/auth.php'],
172172
'result' => $this->getFixture('auth.php'),
173173
],
174+
[
175+
'arguments' => ['.env.development'],
176+
'result' => $this->getFixture('env.development.yml'),
177+
],
174178
[
175179
'arguments' => ['.env.example'],
176180
'result' => $this->getFixture('env.example.yml'),
@@ -228,6 +232,10 @@ public function testRunWithAdminAndDefaultReadmeCreation()
228232
'database/migrations/2018_11_11_111111_users_add_clerk_id_field.php',
229233
$this->getFixture('users_add_clerk_id_field_migration.php'),
230234
],
235+
[
236+
'.env.development',
237+
$this->getFixture('env.development_clerk_guard_added.yml'),
238+
],
231239
[
232240
'.env.example',
233241
$this->getFixture('env.example_clerk_guard_added.yml'),
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
APP_NAME="My App"
2+
APP_ENV=development
3+
APP_KEY=
4+
APP_DEBUG=true
5+
APP_LOG_LEVEL=debug
6+
APP_URL=https://mysite.com
7+
8+
DB_CONNECTION=pgsql
9+
DB_HOST=
10+
DB_PORT=
11+
DB_DATABASE=
12+
DB_USERNAME=
13+
DB_PASSWORD=
14+
15+
BROADCAST_DRIVER=log
16+
CACHE_DRIVER=file
17+
SESSION_DRIVER=redis
18+
QUEUE_CONNECTION=redis
19+
20+
REDIS_HOST=redis
21+
REDIS_PASSWORD=
22+
REDIS_PORT=
23+
24+
MAIL_DRIVER=smtp
25+
MAIL_HOST=
26+
MAIL_PORT=
27+
MAIL_USERNAME=
28+
MAIL_PASSWORD=
29+
MAIL_ENCRYPTION=
30+
31+
FILESYSTEM_DISK=gcs
32+
33+
PUSHER_APP_ID=
34+
PUSHER_APP_KEY=
35+
PUSHER_APP_SECRET=
36+
37+
FRONTEND_URL=
38+
39+
JWT_SHOW_BLACKLIST_EXCEPTION=true
40+
41+
AUTH_GUARD=clerk

0 commit comments

Comments
 (0)