芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/app/Http/Controllers/Admin/ReferralController.php
middleware('auth:admin'); } public function index(){ $data['referrals'] = Referral::get(); return view('admin.referral.index',$data); } public function store(Request $request){ Referral::where('commission_type','invest')->delete(); for($i=0; $i
level); $i++){ $data = new Referral(); $data->commission_type = 'invest'; $data->level = $request->level[$i]; $data->percent = $request->percent[$i]; $data->save(); } return back()->with('success', 'Referral Level Updated For Invest'); } }