*/ protected $fillable = [ 'post_id', 'journal_metric_id', 'value', 'label', ]; /** * Get the journal metric associated with the post metric. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\JournalMetric, $this> */ public function journalMetric(): BelongsTo { return $this->belongsTo(JournalMetric::class); } /** * Get the post associated with the post metric. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Post, $this> */ public function post(): BelongsTo { return $this->belongsTo(Post::class); } }