芝麻web文件管理V1.00
编辑当前文件:/home/royashxg/bit-alphas-ltd.com/user/project/app/Http/Controllers/Admin/BonusController.php
'required', 'status'=>'required' ]; $validator = Validator::make($request->all(), $rules); if ($validator->fails()) { return response()->json(array('errors' => $validator->getMessageBag()->toArray())); } $bonus= RegisterBonus::first(); $data = $request->all(); $bonus->update($data); $msg = 'Bonus Updated Successfully.'; return response()->json($msg); } }