Laravel form validation max chars using 2 fields
i have a simple registeration form i use this validation for creating u new user $validator = Validator::make($request->all(), [ 'first_name' => ['required'], 'last_name' => ['required'], 'phone' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 'password' => ['required',…