示例#1
0
 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Section $section, Request $request)
 {
     //
     $sections = $request->all();
     $sections['created_by'] = \Auth::user()->id;
     $sections['updated_by'] = \Auth::user()->id;
     $sections['is_active'] = 1;
     $section->fill($sections)->save();
     return Redirect::route('sections.index');
 }