Last active
December 14, 2020 12:49
-
-
Save aryadiahmad4689/fa60e695289efd48cae40405fe8a0004 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function edit($id) | |
{ | |
$customer = Customer::findOrFail($id); | |
return view('customer.edit',compact('customer')); | |
} | |
public function update(Request $request,$id) | |
{ | |
$customer = Customer::findOrFail($id); | |
$customer->name = $request->nama; | |
$customer->email = $request->email; | |
$customer->save(); | |
return redirect()->route('customer.index'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment