Browse Source

update type paket in company register

pull/1/head
wahyuun 10 months ago
parent
commit
f723348bed
  1. 6
      app/Http/Controllers/UserRegisterController.php

6
app/Http/Controllers/UserRegisterController.php

@ -35,7 +35,7 @@ class UserRegisterController extends Controller
$phone_no = $data['phone_no'];
$email = $data['email'];
$username = $data['username'];
$type_paket = $request->type_account === 'Personal' ? $data['type_paket'] : '';
$type_paket = $data['type_paket'];
$company_address = $request->type_account === 'Company' ? $data['companyAddress'] : '';
$full_name = $request->type_account === 'Personal' ? $data['full_name'] : '';
@ -94,9 +94,7 @@ class UserRegisterController extends Controller
if(empty($getMenu)) {
return;
}
if($request->type_account === 'Personal') {
$this->addTransaction((int)$addCompany['id'], $formDataCompany);
}
$this->addTransaction((int)$addCompany['id'], $formDataCompany);
$addMenuCompany = $this->addMenuCompany($getMenu, (int)$addCompany['id']);
if(empty($addMenuCompany)) {

Loading…
Cancel
Save