I think you may be looking for the find method instead of the get method for a collection.
$user->services->find($services->id)
The get method gets an item in the collection by the key of the collection not the primary key of the model
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community