Update
This commit is contained in:
@@ -48,6 +48,8 @@ class OrganizationController extends Controller
|
||||
public function store(Request $request)
|
||||
{
|
||||
$organization = [
|
||||
'phone' => $request->no_hp,
|
||||
'email' => $request->email,
|
||||
'code' => $request->code,
|
||||
'name' => $request->name,
|
||||
'type' => 'hospital',
|
||||
@@ -119,6 +121,8 @@ class OrganizationController extends Controller
|
||||
$update_organization = Organization::find($id);
|
||||
|
||||
$update_organization->update([
|
||||
'phone' => $request->no_hp,
|
||||
'email' => $request->email,
|
||||
'code' => $request->code,
|
||||
'name' => $request->name,
|
||||
'type' => 'hospital',
|
||||
@@ -152,7 +156,7 @@ class OrganizationController extends Controller
|
||||
'lat' => $request->lat,
|
||||
'lng' => $request->lng,
|
||||
]);
|
||||
|
||||
|
||||
$update_organization->main_address_id = $newAddres->id;
|
||||
$update_organization->save();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user