diff --git a/app/Services/ClientService.php b/app/Services/ClientService.php index 0b0cbd6..4ed0af6 100644 --- a/app/Services/ClientService.php +++ b/app/Services/ClientService.php @@ -10,7 +10,8 @@ class ClientService { public function __construct(protected Client $client) {} - public function addClient($client) { + public function addClient(array $client) + { return Client::create($client); } } diff --git a/app/Services/UserService.php b/app/Services/UserService.php index bed4b22..d72284f 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -11,10 +11,6 @@ class UserService public function __construct(protected User $user) {} public function createUser(array $user) { - if (User::where('email', '=', $user['email'])) { - throw new \Exception('O e-mail já está cadastrado.'); - } - return User::create($user); } }