*/ public function template(): BelongsTo { return $this->belongsTo(Template::class); } /** * @return array */ protected function casts(): array { return [ 'type' => TemplateKeyType::class, 'is_required' => 'boolean', 'sort_order' => 'integer', ]; } }