[ 'required', 'email', Rule::exists(User::class, 'email')->whereNot('id', $this->user()->id), ], 'amount' => [ 'required', 'integer', 'min:1', ], 'reason' => [ 'required', 'string', 'max:255', ], ]; } public function getRecipient(): User { return User::where('email', '=', $this->input('recipient_email'))->firstOrFail(); } }