Skip to content

Commit dcee238

Browse files
committed
feat: added missing user relationships
1 parent 82953e5 commit dcee238

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

app/Models/UserRelationshipsTrait.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,17 @@
22

33
namespace App\Models;
44

5+
use Illuminate\Database\Eloquent\Relations\HasMany;
6+
57
trait UserRelationshipsTrait
68
{
9+
public function logins(): HasMany
10+
{
11+
return $this->hasMany(UserLogin::class);
12+
}
713

14+
public function contactMessages(): HasMany
15+
{
16+
return $this->hasMany(ContactMessage::class);
17+
}
818
}

0 commit comments

Comments
 (0)