Files
Global-Jain/app/Models/Traits/SanghMember/Relationships/SanghMemberRelationships.php

38 lines
596 B
PHP
Raw Permalink Normal View History

2025-11-05 10:37:10 +05:30
<?php
namespace App\Models\Traits\SanghMember\Relationships;
use App\Models\User;
use App\Models\Sangh;
/**
* Trait SanghMemberRelationships
*
*/
trait SanghMemberRelationships
{
/**
* @return mixed
*/
public function sangh()
{
return $this->belongsTo(Sangh::class, 'sangh_id');
}
/**
* @return mixed
*/
public function user()
{
return $this->belongsTo(User::class, 'user_id');
}
/**
* @return mixed
*/
public function addedBy()
{
return $this->belongsTo(User::class, 'added_by');
}
}