Your Shop creates, verify user
This commit is contained in:
parent
c129a44383
commit
ccc2af4bf7
76 changed files with 3728 additions and 1477 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace App\Repositories;
|
||||
|
||||
use App\Models\UserAccount;
|
||||
use App\User;
|
||||
|
||||
|
||||
|
|
@ -14,10 +15,7 @@ class UserRepository extends BaseRepository {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* refresh.
|
||||
*/
|
||||
/*public function update($data)
|
||||
public function update($data)
|
||||
{
|
||||
|
||||
if($data['user_id'] == "new"){
|
||||
|
|
@ -40,17 +38,15 @@ class UserRepository extends BaseRepository {
|
|||
$account->company = $data['company'];
|
||||
|
||||
$account->company_name = $data['company_name'];
|
||||
|
||||
$account->company_street = $data['company_street'];
|
||||
$account->company_postal_code = $data['company_postal_code'];
|
||||
$account->company_city = $data['company_city'];
|
||||
$account->company_country_id = isset($data['company_country_id']) ? $data['company_country_id'] : null;
|
||||
|
||||
$account->company_pre_phone_id = isset($data['company_pre_phone_id']) ? $data['company_pre_phone_id']: null;
|
||||
$account->company_phone = $data['company_phone'];
|
||||
$account->company_homepage = $data['company_homepage'];
|
||||
|
||||
|
||||
$account->position_text = $data['position_text'];
|
||||
$account->salutation = $data['salutation'];
|
||||
$account->title = $data['title'];
|
||||
$account->first_name = $data['first_name'];
|
||||
|
|
@ -67,7 +63,11 @@ class UserRepository extends BaseRepository {
|
|||
$account->pre_mobil_id = isset($data['pre_mobil_id']) ? $data['pre_mobil_id']: null;
|
||||
$account->mobil = $data['mobil'];
|
||||
|
||||
$account->contactpartner = $data['contactpartner'];
|
||||
$account->birthday = $data['birthday'];
|
||||
$account->website = $data['website'];
|
||||
$account->instagram = $data['instagram'];
|
||||
$account->facebook = $data['facebook'];
|
||||
$account->facebook_fanpage = $data['facebook_fanpage'];
|
||||
|
||||
//data_protection
|
||||
//active_date
|
||||
|
|
@ -79,14 +79,9 @@ class UserRepository extends BaseRepository {
|
|||
$this->model->save();
|
||||
}
|
||||
|
||||
$this->updateInterests(isset($data['interests']) ? $data['interests'] : array());
|
||||
$this->updateIndustrySector(isset($data['industry_sectors']) ? $data['industry_sectors'] : array());
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
public function deleteUser(User $user)
|
||||
{
|
||||
if($user->account){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue