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

22 lines
383 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class Country extends Model
{
use SoftDeletes;
public function states()
{
return $this->hasmany(State::class)->withTrashed();
}
public function addresses()
{
return $this->hasmany(Address::class)->withTrashed();
}
}