I'am trying to check if the record has relation and at the same time I want to make an eager load so:
User::has('item')->with('item')->get();
I've noticed that with
method do not check if the record has a relation, is this the right sequence or there are a shorter way to code this?