From 83faf818143f27b95d54f62a38b2ca9ffaa6d2c3 Mon Sep 17 00:00:00 2001
From: OhmygoodR <109280933+OhmygoodR@users.noreply.github.com>
Date: Wed, 14 Feb 2024 06:53:29 +0800
Subject: [PATCH] Update ProfileController.php
---
app/Http/Controllers/ProfileController.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php
index bb6bab39..f021228d 100644
--- a/app/Http/Controllers/ProfileController.php
+++ b/app/Http/Controllers/ProfileController.php
@@ -13,6 +13,9 @@ public function update(Request $request)
//
//
// Write validation rules, so both name and email are required
+ 'profile'=>'required',
+ 'profile.name'=>'required',
+ 'profile.email'=>'required'
]);
auth()->user()->update($request->profile ?? []);