| 1 | <?php |
||
| 16 | class KeyGenerateCommand extends Command |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The console command name. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $name = 'key:generate'; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The console command description. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | protected $description = 'Set the application key'; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Execute the console command. |
||
| 34 | * |
||
| 35 | * @return void |
||
| 36 | */ |
||
| 37 | public function fire() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Generate a random key for the application. |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | protected function getRandomKey() |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Get the console command options. |
||
| 68 | * |
||
| 69 | * @return array |
||
| 70 | */ |
||
| 71 | protected function getOptions() |
||
| 77 | } |
||
| 78 |