diff --git a/src/app/Console/Commands/CreateUser.php b/src/app/Console/Commands/CreateUser.php index e3e9634..aa76ad1 100644 --- a/src/app/Console/Commands/CreateUser.php +++ b/src/app/Console/Commands/CreateUser.php @@ -52,7 +52,7 @@ class CreateUser extends Command ]); $this->info("$email created successfully."); - return 0; + return Command::SUCCESS; } catch (\Exception $e) { $this->error('Unable to create your user.'); $this->line($e->getMessage()); diff --git a/src/app/Console/Commands/ResetPassword.php b/src/app/Console/Commands/ResetPassword.php index 11699c3..d91dc98 100644 --- a/src/app/Console/Commands/ResetPassword.php +++ b/src/app/Console/Commands/ResetPassword.php @@ -52,7 +52,7 @@ class ResetPassword extends Command $column = 'email'; $value = $email; } else { - $column = strtolower($this->choice('What column would you like to search by?', ['ID', 'Email'])); + $column = strtolower($this->choice('What database column would you like to search by?', ['ID', 'Email'])); $value = $this->ask("Please provide an $column to search for"); } @@ -68,7 +68,7 @@ class ResetPassword extends Command try { $user->update(['password' => Hash::make($password)]); $this->info("User {$user->id} ({$user->email}) password update successful!"); - return 0; + return Command::SUCCESS; } catch (\Exception $e) { $this->error('Unable to set the password!'); $this->line($e->getMessage());