belongsTo(Country::class); } public static function getStates() { return self::select('id','state_name')->where('status','Active')->get(); } public static function getStatesByCountryId($country_id) { return self::select('id','state_name')->where('status','Active')->where('country_id',$country_id)->get(); } }