'required', 'payment_hash' => 'required', ]; } public function getPaymentHash() { $input = $this->all(); return PaymentHash::whereRaw('BINARY `hash`= ?', [$input['payment_hash']])->first(); } }