diff --git a/src/Models/Medium.php b/src/Models/Medium.php index 4c7c2f35..923104a6 100644 --- a/src/Models/Medium.php +++ b/src/Models/Medium.php @@ -134,6 +134,14 @@ public static function makeFromPath(string $path, array $attributes = []): stati ], $attributes)); } + /** + * {@inheritdoc} + */ + public function getMorphClass(): string + { + return static::getProxiedClass(); + } + /** * Get the columns that should receive a unique identifier. */ diff --git a/src/Models/Meta.php b/src/Models/Meta.php index 1fcd29b9..3b59da0a 100644 --- a/src/Models/Meta.php +++ b/src/Models/Meta.php @@ -58,6 +58,14 @@ protected static function newFactory(): Factory return MetaFactory::new(); } + /** + * {@inheritdoc} + */ + public function getMorphClass(): string + { + return static::getProxiedClass(); + } + /** * Get the metable model. */ diff --git a/src/Models/Notification.php b/src/Models/Notification.php index f3780000..4bd60306 100644 --- a/src/Models/Notification.php +++ b/src/Models/Notification.php @@ -52,6 +52,14 @@ public static function getProxiedInterface(): string return Contract::class; } + /** + * {@inheritdoc} + */ + public function getMorphClass(): string + { + return static::getProxiedClass(); + } + /** * Get the subject attribute. */ diff --git a/src/Traits/AsRootUser.php b/src/Traits/AsRootUser.php index 7225f0c3..05c564bf 100644 --- a/src/Traits/AsRootUser.php +++ b/src/Traits/AsRootUser.php @@ -21,6 +21,14 @@ public static function getProxiedInterface(): string return User::class; } + /** + * {@inheritdoc} + */ + public function getMorphClass(): string + { + return static::getProxiedClass(); + } + /** * Get the uploads for the user. */