File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 11<?php
2+
23namespace App \Console \Commands ;
3- use Illuminate \ Support \ Str ;
4+
45use Illuminate \Console \Command ;
6+
57class 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+ }
You can’t perform that action at this time.
0 commit comments