api code global jain
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Traits\SantLocation\Relationships;
|
||||
|
||||
use App\Models\Sant;
|
||||
use App\Models\User;
|
||||
|
||||
/**
|
||||
* Trait SantLocationRelationships
|
||||
* @package Domains\SantLocation\Models\Traits\Relationships
|
||||
*/
|
||||
trait SantLocationRelationships
|
||||
{
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function sant()
|
||||
{
|
||||
return $this->belongsTo(Sant::class);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function createdBy()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'created_by', 'id');
|
||||
}
|
||||
|
||||
/**
|
||||
* @return mixed
|
||||
*/
|
||||
public function updatedBy()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'updated_by', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user