Level 58
You can use the whereHas method to filter the banners based on the banner_type field.
$client = Client::query()
->with(['banners' => function ($query) {
$query->where('banner_type', 1)->orWhere('banner_type', 2);
}])
->find(1);
This will return the $client object with the banners relationship filtered to only include banners with banner_type of 1 or 2.