Merge pull request #4496 from turbo124/v5-develop

Client filters by name
This commit is contained in:
David Bomba 2020-12-15 20:50:42 +11:00 committed by GitHub
commit 008f3fd45f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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