for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Filters;
use EloquentFilter\ModelFilter;
class SubscriptionFilter 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 $filter
* @return $this
public function filter($filter)
return $this->where(function ($q) use ($filter) {
where()
App\Filters\SubscriptionFilter
__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(function ($q) use ($filter) {
return $q->where('email', 'LIKE', '%'.$filter.'%')
->orWhere('name', 'LIKE', '%'.$filter.'%');
});
}
* @param $id
public function mailing_list($id)
return $this->where('mailing_list_id', $id);