*/ protected $fillable = [ 'vault_id', 'name', 'description', ]; /** * Get the vault associated with the journal. */ public function vault(): BelongsTo { return $this->belongsTo(Vault::class); } /** * Get the posts associated with the journal. */ public function posts(): HasMany { return $this->hasMany(Post::class); } /** * Get the slices of life associated with the journal. */ public function slicesOfLife(): HasMany { return $this->hasMany(SliceOfLife::class); } /** * Get the journal metrics associated with the journal. */ public function journalMetrics(): HasMany { return $this->hasMany(JournalMetric::class); } }