Skip to content

Commit 80da200

Browse files
1 parent 44508b6 commit 80da200

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Attachmentable.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22

33
namespace TheAMasoud\LaravelAttachments;
44

5+
use Illuminate\Database\Eloquent\Relations\MorphMany;
56
use TheAMasoud\LaravelAttachments\Models\Attachment;
67
use Illuminate\Support\Facades\Storage;
78

89
trait Attachmentable
910
{
10-
public function attachments()
11+
public function attachments(): MorphMany
1112
{
1213
return $this->morphMany(Attachment::class, 'attachmentable');
1314
}

0 commit comments

Comments
 (0)