Exemplo n.º 1
0
 public function store(Request $request, Family $family)
 {
     $request->request->add(['updated_by' => Auth::user()->id]);
     Family::create($request->all());
     Flash::success('Family has been created successFully!');
     return Redirect::back();
 }
Exemplo n.º 2
0
 public function store(Request $request, Family $family)
 {
     $request->request->add(['updated_by' => Auth::user()->id]);
     $family = Family::create($request->all());
     return response(['data' => $family, 'status' => 'success', 'message' => 'successfully created']);
 }