We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b56cd73 commit 456e476Copy full SHA for 456e476
src/Concerns/IsLinkable.php
@@ -3,17 +3,17 @@
3
namespace Plank\Frontdesk\Concerns;
4
5
use Illuminate\Database\Eloquent\Relations\MorphMany;
6
-use Plank\Frontdesk\Models\Hyperlink;
+use Plank\Frontdesk\Contracts\LinksToContent;
7
8
/**
9
* @mixin \Illuminate\Database\Eloquent\Model
10
*
11
- * @property-read \Illuminate\Database\Eloquent\Collection<Hyperlink> $hyperlinks
+ * @property-read \Illuminate\Database\Eloquent\Collection<LinksToContent> $hyperlinks
12
*/
13
trait IsLinkable
14
{
15
public function hyperlinks(): MorphMany
16
17
- return $this->morphMany(Hyperlink::class, 'linkable');
+ return $this->morphMany(config('frontdesk.models.hyperlink'), 'linkable');
18
}
19
0 commit comments