*/ protected $fillable = [ 'journal_id', 'label', ]; /** * Get the journal associated with the journal metric. * * @return \Illuminate\Database\Eloquent\Relations\BelongsTo<\App\Models\Journal, $this> */ public function journal(): BelongsTo { return $this->belongsTo(Journal::class); } /** * Get the post metrics associated with the journal metric. * * @return \Illuminate\Database\Eloquent\Relations\HasMany<\App\Models\PostMetric, $this> */ public function postMetrics(): HasMany { return $this->hasMany(PostMetric::class); } }