#10 Promotion Modul, Kommentar 2
This commit is contained in:
parent
f0da981737
commit
c9e1545693
128 changed files with 8194 additions and 637 deletions
|
|
@ -67,9 +67,11 @@ class UserPromotionRepository extends BaseRepository {
|
|||
|
||||
if(isset($data['promotion_admin_id'])){
|
||||
$PromotionAdmin = PromotionAdmin::findOrFail($data['promotion_admin_id']);
|
||||
|
||||
$this->model = PromotionUser::create([
|
||||
'promotion_admin_id' => $PromotionAdmin->id,
|
||||
'user_id' => Auth::user()->id,
|
||||
'user_address' => Auth::user()->getFullAddress()
|
||||
]);
|
||||
return $this->model;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue