Skip to content

Commit 7608e39

Browse files
committed
Merge branch 'master' of github.com:LaunchPadCS/launchpad
2 parents a39f7d8 + 0465a0d commit 7608e39

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

app/Console/Commands/HashidSalt.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
<?php
2+
23
namespace App\Console\Commands;
3-
use Illuminate\Support\Str;
4+
45
use Illuminate\Console\Command;
6+
57
class HashidSalt extends Command
68
{
79
/**
@@ -16,6 +18,7 @@ class HashidSalt extends Command
1618
* @var string
1719
*/
1820
protected $description = 'Set the hashid salt in .env';
21+
1922
/**
2023
* Execute the console command.
2124
*
@@ -28,10 +31,12 @@ public function handle()
2831
$this->laravel['config']['hashids.connections.main.salt'] = $key;
2932
$this->info("JWT key [$key] set successfully.");
3033
}
34+
3135
/**
3236
* Set the application key in the environment file.
3337
*
34-
* @param string $key
38+
* @param string $key
39+
*
3540
* @return void
3641
*/
3742
protected function setKeyInEnvironmentFile($key)
@@ -42,6 +47,7 @@ protected function setKeyInEnvironmentFile($key)
4247
file_get_contents($this->laravel->environmentFilePath())
4348
));
4449
}
50+
4551
/**
4652
* Generate a random key for the application.
4753
*
@@ -51,4 +57,4 @@ protected function generateRandomKey()
5157
{
5258
return str_random(10);
5359
}
54-
}
60+
}

0 commit comments

Comments
 (0)