Skip to content

Commit 87d6c43

Browse files
committed
try fix morph map error
1 parent e81b5ec commit 87d6c43

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

src/InspireCmsServiceProvider.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,6 @@ public function registeringPackage(): void
102102

103103
public function packageRegistered(): void
104104
{
105-
$this->registerPolymorphism();
106-
107105
$this->app->singleton(BaseManifests\ModelManifestInterface::class, fn () => $this->app->make(BaseManifests\ModelManifest::class));
108106
$this->app->singleton(BaseManifests\ContentStatusManifestInterface::class, fn () => $this->app->make(BaseManifests\ContentStatusManifest::class));
109107
$this->app->singleton(BaseManifests\PermissionManifestInterface::class, fn () => $this->app->make(BaseManifests\PermissionManifest::class));
@@ -299,18 +297,6 @@ protected function getMigrations(): array
299297
];
300298
}
301299

302-
/**
303-
* Register Polymorphic Types
304-
*/
305-
protected function registerPolymorphism(): void
306-
{
307-
$map = Arr::pluck(InspireCmsConfig::get('models'), 'fqcn', 'polymorphic_type');
308-
309-
if (! empty($map)) {
310-
Relation::enforceMorphMap($map);
311-
}
312-
}
313-
314300
protected function registerModels(): void
315301
{
316302
Facades\ModelManifest::register();

0 commit comments

Comments
 (0)