trs_matrimony/app/Models/SpiritualBackground.php
2024-08-22 09:31:12 +05:30

39 lines
743 B
PHP

<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class SpiritualBackground extends Model
{
use SoftDeletes;
public function user()
{
return $this->belongsTo(User::class)->withTrashed();
}
public function religion()
{
return $this->belongsTo(Religion::class)->withTrashed();
}
public function caste()
{
return $this->belongsTo(Caste::class)->withTrashed();
}
public function sub_caste()
{
return $this->belongsTo(SubCaste::class)->withTrashed();
}
public function family_value()
{
return $this->belongsTo(FamilyValue::class)->withTrashed();
}
}