/** * @param string $hash * * @return array */ public function findPurchaseByHash($hash) { return Purchase::query()->where('hash', $hash)->first(); }