CountryRegionFilter.php
450 Bytes
<?php
namespace App\ModelFilters;
use App\Support\ModelFilter;
class CountryRegionFilter extends ModelFilter
{
/**
* @param int $parent
* @return void
*/
public function parent(int $parent): void
{
$this->where('parent_id', $parent);
}
/**
* @param int $country
* @return void
*/
public function country(int $country): void
{
$this->where('country_id', $country);
}
}