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