Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function store(Request $request)
- {
- $health = new health();
- $health->nama = $request->nama;
- $health->healt = $request->healt;
- $health->note = $request->note;
- $health->Save();
- if ($request->id_health == $health->id) {
- foreach ($request->add_form as $value) {
- $more = new healthmore();
- $more->id_health = $health->id;
- $more->health = $value['health'];
- $more->notes = $value['notes'];
- $more->Save();
- }
- }
- return back();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement