Files
Global-Jain/app/Models/SantTempRelation.php
2025-11-05 10:37:10 +05:30

40 lines
720 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class SantTempRelation extends Model
{
use HasFactory;
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [
'relation_type',
'relation_id',
'sant_temp_id',
'type',
];
/**
* Get the user that owns the phone.
*/
public function sant()
{
return $this->belongsTo(SantTemp::class, 'relation_id');
}
/**
* Get the user that owns the phone.
*/
public function user()
{
return $this->belongsTo(User::class, 'relation_id');
}
}