added nullable

This commit is contained in:
Ritikesh yadav
2024-06-18 13:21:26 +05:30
parent 32cf555f17
commit 61d23e58e0

View File

@@ -91,7 +91,7 @@ class ProfileController extends Controller
'name' => 'required',
// 'email' => 'required',
// 'contact_number' => 'required|min:10|max:10|unique:users,contact_number,' . $request->user()->id . '',
'profile_image' => 'image|mimes:jpeg,jpg,png|max:2000',
'profile_image' => 'nullable|image|mimes:jpeg,jpg,png|max:2000',
'address' => 'required'
], [
'required' => 'The :attribute field must be required',