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

22 lines
404 B
PHP

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