for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Filters;
use EloquentFilter\ModelFilter;
class TemplateFilter extends ModelFilter
{
/**
* Related Models that have ModelFilters as well as the method on the ModelFilter
* As [relatedModel => [input_key1, input_key2]].
*
* @var array
*/
public $relations = [];
* @param $name
* @return $this
public function name($name)
return $this->where('name', 'LIKE', '%'.$name.'%');
where()
App\Filters\TemplateFilter
__call
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
return $this->/** @scrutinizer ignore-call */ where('name', 'LIKE', '%'.$name.'%');
}