28 lines
513 B
PHP
28 lines
513 B
PHP
<?php
|
|
|
|
namespace App\ModelFilters;
|
|
|
|
use EloquentFilter\ModelFilter;
|
|
|
|
class DeviceFilter extends ModelFilter
|
|
{
|
|
public function point($point)
|
|
{
|
|
return $this->where('monitoring_point', 'like', $point.'%');
|
|
}
|
|
|
|
public function base($base)
|
|
{
|
|
return $this->where('agricultural_base_id', $base);
|
|
}
|
|
|
|
public function type($type)
|
|
{
|
|
return $this->where('type', $type);
|
|
}
|
|
|
|
public function status($status){
|
|
return $this->where('status', $status);
|
|
}
|
|
}
|