check(); } /** * Get the validation rules that apply to the request. * * @return array */ public function rules() { return [ 'name' => 'required|max:255', 'email' => 'required|email|unique:users,email,'.auth()->id(), 'phone' => 'required|digits_between:6,9|numeric' ]; } }