Files
Global-Jain/app/Models/Traits/Request/Relationships/RequestRelationships.php

26 lines
400 B
PHP
Raw Normal View History

2025-11-05 10:37:10 +05:30
<?php
namespace App\Models\Traits\Request\Relationships;
use App\Models\User;
trait RequestRelationships
{
/**
* @return mixed
*/
public function receivedUsers()
{
return $this->belongsTo(User::class, 'sender_id');
}
/**
* @return mixed
*/
public function sentUsers()
{
return $this->belongsTo(User::class, 'receiver_id');
}
}