Files
wonderful-weather/app/Filters/CityFilter.php
foobar 27c1969aaa init
2022-08-21 21:39:06 +02:00

26 lines
503 B
PHP

<?php
namespace App\Filters;
use App\Filters\ApiFilter;
class CityFilter extends ApiFilter {
protected $safeParms = [
'locationName' => ['eq'],
'locationCountry' => ['eq'],
'id' => ['eq']
];
protected $columnMap = [
'locationName' => 'location_name',
'locationCountry' => 'location_country'
];
protected $operatorMap = [
'eq' => '=',
'lt' => '<',
'lte' => '<=',
'gt' => '>',
'gte' => '>=',
];
}