1 | <?php |
||
11 | class SeedCommand extends Command |
||
12 | { |
||
13 | /** |
||
14 | * The name and signature of the console command. |
||
15 | * |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $signature = 'cortex:seed:auth'; |
||
19 | |||
20 | /** |
||
21 | * The console command description. |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $description = 'Seed Cortex Auth Data.'; |
||
26 | |||
27 | /** |
||
28 | * Execute the console command. |
||
29 | * |
||
30 | * @return void |
||
31 | */ |
||
32 | public function handle(): void |
||
50 | |||
51 | /** |
||
52 | * Create admin model. |
||
53 | * |
||
54 | * @param string $password |
||
55 | * |
||
56 | * @return \Cortex\Auth\Models\Admin |
||
57 | */ |
||
58 | protected function createAdmin(string $password): Admin |
||
75 | |||
76 | /** |
||
77 | * Create guardian model. |
||
78 | * |
||
79 | * @param string $password |
||
80 | * |
||
81 | * @return \Cortex\Auth\Models\Guardian |
||
82 | */ |
||
83 | protected function createGuardian(string $password): Guardian |
||
98 | } |
||
99 |