Skip to content

Commit

Permalink
Add Relation::morphMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Omranic committed Jan 8, 2023
1 parent 7f54307 commit 3ba8887
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Providers/CategoriesServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,10 @@ public function boot()
$this->publishesConfig('rinvex/laravel-categories');
$this->publishesMigrations('rinvex/laravel-categories');
! $this->autoloadMigrations('rinvex/laravel-categories') || $this->loadMigrationsFrom(__DIR__.'/../../database/migrations');

// Map relations
Relation::morphMap([
'category' => config('rinvex.categories.models.category'),
]);
}
}

0 comments on commit 3ba8887

Please sign in to comment.