public function rules() { return [ 'user_id' => 'exists:users,id', 'email' => 'required_without:user_id|email|unique:users,email', 'password' => 'required_without:user_id', }