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

22 lines
405 B
PHP

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