1 | <?php |
||
9 | class JWTGenerateCommand extends Command |
||
10 | { |
||
11 | /** |
||
12 | * The console command name. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $name = 'jwt:generate'; |
||
17 | |||
18 | /** |
||
19 | * The console command description. |
||
20 | * |
||
21 | * @var string |
||
22 | */ |
||
23 | protected $description = 'Set the JWTAuth secret key used to sign the tokens'; |
||
24 | |||
25 | /** |
||
26 | * Execute the console command. |
||
27 | * |
||
28 | * @return void |
||
29 | */ |
||
30 | public function fire() |
||
50 | |||
51 | /** |
||
52 | * Generate a random key for the JWT Auth secret. |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | protected function getRandomKey() |
||
60 | |||
61 | /** |
||
62 | * Get the console command options. |
||
63 | * |
||
64 | * @return array |
||
65 | */ |
||
66 | 3 | protected function getOptions() |
|
72 | } |
||
73 |