loads the given relationships for all models in the collection if the relationships are not already loaded code example
Example: loads the given relationships for all models in the collection if the relationships are not already loaded
$users->loadMissing(['comments', 'posts']);
$users->loadMissing('comments.author');