mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-05 18:52:44 +01:00
Client filters by name
This commit is contained in:
parent
3c9a8fdd35
commit
300e42278f
@ -22,6 +22,18 @@ use Illuminate\Support\Facades\Gate;
|
||||
*/
|
||||
class ClientFilters extends QueryFilters
|
||||
{
|
||||
|
||||
/**
|
||||
* Filter by name.
|
||||
*
|
||||
* @param string $name
|
||||
* @return Builder
|
||||
*/
|
||||
public function name(string $name): Builder
|
||||
{
|
||||
return $this->builder->where('name', 'like', '%'.$name.'%');
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter by balance.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user