¨4.0.1¨
This commit is contained in:
@@ -9,11 +9,13 @@ class CustomerService
|
||||
{
|
||||
private $auth;
|
||||
|
||||
|
||||
public function __construct(Authentication $auth)
|
||||
{
|
||||
$this->auth = $auth;
|
||||
}
|
||||
|
||||
|
||||
public function register($request)
|
||||
{
|
||||
return tap($this->auth->registerAndActivate($this->getCustomerData($request)), function ($user) {
|
||||
@@ -23,6 +25,7 @@ class CustomerService
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private function getCustomerData($request)
|
||||
{
|
||||
return array_merge($request->billing, [
|
||||
|
||||
Reference in New Issue
Block a user