38 lines
670 B
PHP
38 lines
670 B
PHP
|
|
<?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');
|
||
|
|
}
|
||
|
|
}
|