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 ?? []);