コード例 #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(SpecimenTypeRequest $request)
 {
     $specimentype = new SpecimenType();
     $specimentype->name = $request->name;
     $specimentype->description = $request->description;
     $specimentype->save();
     $url = session('SOURCE_URL');
     return redirect()->to($url)->with('message', trans('terms.record-successfully-saved'))->with('active_specimentype', $specimentype->id);
 }