1 | <?php |
||
13 | class SeedCommand extends Command |
||
14 | { |
||
15 | /** |
||
16 | * The name and signature of the console command. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $signature = 'cortex:seed:auth'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Seed Cortex Auth Data.'; |
||
28 | |||
29 | /** |
||
30 | * Execute the console command. |
||
31 | * |
||
32 | * @return void |
||
33 | */ |
||
34 | public function handle(): void |
||
56 | |||
57 | /** |
||
58 | * Create admin model. |
||
59 | * |
||
60 | * @param string $password |
||
61 | * |
||
62 | * @return \Cortex\Auth\Models\Admin |
||
63 | */ |
||
64 | protected function createAdmin(string $password): Admin |
||
82 | |||
83 | /** |
||
84 | * Create guardian model. |
||
85 | * |
||
86 | * @param string $password |
||
87 | * |
||
88 | * @return \Cortex\Auth\Models\Guardian |
||
89 | */ |
||
90 | protected function createGuardian(string $password): Guardian |
||
105 | |||
106 | /** |
||
107 | * Create manager model. |
||
108 | * |
||
109 | * @param string $password |
||
110 | * |
||
111 | * @return \Cortex\Auth\Models\Manager |
||
112 | */ |
||
113 | protected function createManager(string $password): Manager |
||
131 | |||
132 | /** |
||
133 | * Create member model. |
||
134 | * |
||
135 | * @param string $password |
||
136 | * |
||
137 | * @return \Cortex\Auth\Models\Member |
||
138 | */ |
||
139 | protected function createMember(string $password): Member |
||
157 | } |
||
158 |