I want to get all Address IDs, including the trashed ones, with pluck. This is how it is working but I don't get the trashed ones as well...:
$clientIDs = Client::pluck('address_id')->all();
This is what I tried already:
$clientIDs = Client::pluck('address_id')
->withTrashed()
->get();
Throws: Method withTrashed does not exist.
How can I use pluck and withTrashed() and solve this problem?
Kind regards!