'boolean', 'default_data' => 'array', ]; /** * Section templates are used via JSON in pages.sections_data * No direct relation needed, but we can add a helper method */ public function getPagesUsingThisTemplate() { return Page::whereJsonContains('sections_data', [['section_template_id' => $this->id]])->get(); } }