/** * Get the user's largest order. */ public function largestOrder() { return $this->hasOne(Order::class)->ofMany('price', 'max'); }