'object', 'deleted_at' => 'timestamp', 'updated_at' => 'timestamp', 'created_at' => 'timestamp', ]; protected $fillable = [ 'name', 'design', 'is_active', 'is_template', 'entities', ]; public function company() { return $this->belongsTo(Company::class); } public function service(): TemplateService { return (new TemplateService($this))->setCompany($this->company); } }