Skip to content

Commit 3bbaccb

Browse files
Closes #77 Listen command throws error (#78)
* Closes #77 Listen command throws error * Update src/Console/ListenCommand.php --------- Co-authored-by: Dries Vints <[email protected]>
1 parent 7662c3e commit 3bbaccb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/Console/ListenCommand.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
use Illuminate\Http\Client\Response;
1010
use Illuminate\Process\InvokedProcess;
1111
use Illuminate\Support\Facades\App;
12+
use Illuminate\Support\Facades\Hash;
1213
use Illuminate\Support\Facades\Http;
1314
use Illuminate\Support\Facades\Process;
1415
use Illuminate\Support\Facades\Validator;
@@ -85,15 +86,11 @@ protected function validateArguments()
8586
'string',
8687
'in:expose,ngrok,test',
8788
],
88-
'signing_secret' => [
89-
'required',
90-
],
9189
'store' => [
9290
'required',
9391
],
9492
], [
9593
'api_key.required' => 'The LEMON_SQUEEZY_API_KEY environment variable is required.',
96-
'signing_secret.required' => 'The LEMON_SQUEEZY_SIGNING_SECRET environment variable is required.',
9794
'store.required' => 'The LEMON_SQUEEZY_STORE environment variable is required.',
9895
])->validate();
9996
}
@@ -269,7 +266,7 @@ protected function setupWebhook(string $tunnel): void
269266
'license_key_created',
270267
'license_key_updated',
271268
],
272-
'secret' => config('lemon-squeezy.signing_secret'),
269+
'secret' => config('lemon-squeezy.signing_secret') ?: Str::random(32),
273270
],
274271
'relationships' => [
275272
'store' => [

0 commit comments

Comments
 (0)