1
0
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:
David Bomba 2020-12-15 20:44:22 +11:00
parent 3c9a8fdd35
commit 300e42278f

View File

@ -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.
*