| 1 | <?php |
||
| 8 | class AlphabetGenerateCommand extends Command |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * The console command name. |
||
| 12 | * |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | protected $name = 'hashid:alphabet'; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The console command description. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | protected $description = 'Generate a random alphabet for Hashid encoding'; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Execute the console command. |
||
| 26 | * |
||
| 27 | * @return mixed |
||
| 28 | */ |
||
| 29 | public function handle() |
||
| 37 | 1 | ||
| 38 | /** |
||
| 39 | * Generate random alphabet. |
||
| 40 | * |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | protected function generateRandomAlphabet($characters) |
||
| 47 | |||
| 48 | /** |
||
| 49 | * Get the console command options. |
||
| 50 | * |
||
| 51 | * @return array |
||
| 52 | */ |
||
| 53 | protected function getOptions() |
||
| 60 | } |
||
| 61 |