Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 2, 2024
1 parent 310edcc commit 0c8e53c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Models/Medium.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Models/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ protected static function newFactory(): Factory
return MetaFactory::new();
}

/**
* {@inheritdoc}
*/
public function getMorphClass(): string
{
return static::getProxiedClass();
}

/**
* Get the metable model.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Models/Notification.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ public static function getProxiedInterface(): string
return Contract::class;
}

/**
* {@inheritdoc}
*/
public function getMorphClass(): string
{
return static::getProxiedClass();
}

/**
* Get the subject attribute.
*/
Expand Down
8 changes: 8 additions & 0 deletions src/Traits/AsRootUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 0c8e53c

Please sign in to comment.