芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/myvyralapp.com/bck/app/Traits/Agent/UserPartials.php
user(); $qrCode = $user->qrCode()->first(); $in['agent_id'] = $user->id;; $in['qr_code'] = $user->full_mobile; if(!$qrCode){ AgentQrCode::create($in); }else{ $qrCode->fill($in)->save(); } return $qrCode; } protected function user(){ return userGuard()['user']; } }