mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-11 20:31:06 +03:30
add package
This commit is contained in:
@@ -55,4 +55,14 @@ class User extends Authenticatable
|
||||
{
|
||||
return $this->where('cell_number', $username)->where('status', 'Active')->first();
|
||||
}
|
||||
|
||||
public function messagesSent()
|
||||
{
|
||||
return $this->hasMany('App\Message', 'sender_user_id');
|
||||
}
|
||||
|
||||
public function messagesReceived()
|
||||
{
|
||||
return $this->hasMany('App\Message', 'recipient_user_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user