| @@ 22-37 (lines=16) @@ | ||
| 19 | */ |
|
| 20 | protected $description = 'Manage your users.'; |
|
| 21 | ||
| 22 | public function fire() |
|
| 23 | { |
|
| 24 | if ($this->option('create')) { |
|
| 25 | return $this->createNewUser(); |
|
| 26 | } |
|
| 27 | ||
| 28 | if ($this->option('delete')) { |
|
| 29 | return $this->deleteUser(); |
|
| 30 | } |
|
| 31 | ||
| 32 | if ($this->option('password')) { |
|
| 33 | return $this->changePassword(); |
|
| 34 | } |
|
| 35 | ||
| 36 | $this->getUsers(); |
|
| 37 | } |
|
| 38 | ||
| 39 | public function handle() |
|
| 40 | { |
|
| @@ 39-54 (lines=16) @@ | ||
| 36 | $this->getUsers(); |
|
| 37 | } |
|
| 38 | ||
| 39 | public function handle() |
|
| 40 | { |
|
| 41 | if ($this->option('create')) { |
|
| 42 | return $this->createNewUser(); |
|
| 43 | } |
|
| 44 | ||
| 45 | if ($this->option('delete')) { |
|
| 46 | return $this->deleteUser(); |
|
| 47 | } |
|
| 48 | ||
| 49 | if ($this->option('password')) { |
|
| 50 | return $this->changePassword(); |
|
| 51 | } |
|
| 52 | ||
| 53 | $this->getUsers(); |
|
| 54 | } |
|
| 55 | ||
| 56 | /** |
|
| 57 | * @return string |
|