示例#1
0
 public function store(ExamRules $rules, CreateRulesRequest $request)
 {
     $rules->fill($request->all())->save();
     $message = 'تم اضافة ضابط بنجاح';
     if (request('submit') == 'save') {
         return redirect()->back()->with('success', $message);
     } else {
         return redirect()->route('exams.rules.index')->with('success', $message);
     }
 }