'integer', 'is_active' => 'boolean', ]; public function reminders(): HasMany { return $this->hasMany(Reminder::class, 'template_id'); } public function parseContent(array $placeholders): string { $content = $this->content; foreach ($placeholders as $key => $value) { $content = str_replace('{' . $key . '}', $value, $content); } return $content; } }