diff --git a/innopacks/common/src/Repositories/CustomerRepo.php b/innopacks/common/src/Repositories/CustomerRepo.php index c238babd..86b43aa2 100644 --- a/innopacks/common/src/Repositories/CustomerRepo.php +++ b/innopacks/common/src/Repositories/CustomerRepo.php @@ -15,6 +15,8 @@ use InnoShop\Common\Models\Customer; use Throwable; +use function Laravel\Prompts\password; + class CustomerRepo extends BaseRepo { /** @@ -100,6 +102,9 @@ public function builder(array $filters = []): Builder public function create($data): Customer { $data = $this->handleData($data); + if (! isset($data['password'])) { + $data['password'] = ''; + } $item = new Customer($data); $item->saveOrFail();