'numeric|required', ]; /** * A metric point belongs to a metric unit. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo */ public function metric() { return $this->belongsTo(Metric::class, 'id', 'metric_id'); } /** * Get the presenter class. * * @return string */ public function getPresenterClass() { return MetricPointPresenter::class; } }