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

27 lines
517 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Caste extends Model
{
use SoftDeletes;
public function religion()
{
return $this->belongsTo(Religion::class)->withTrashed();
}
public function sub_castes()
{
return $this->hasmany(SubCaste::class)->withTrashed();
}
public function spiritual_backgrounds()
{
return $this->hasmany(SpiritualBackground::class)->withTrashed();
}
}