I am calling URL with search params which are dynamic. How could I form proper Eloquent query?
In theory:
You can pass dynamic value by below example
$user_auctions = $this->with('userAuctions') ->where('users.id', '=', $id) ->get();