I have a list of all messages like this which contains the user id who sent it
$messages= Chat::all();
And a list of blocked users like this with the id of the user who was blocked
$blockedUsers=BlockUser::where('user_id', $user->id)->get();
My question is How to remove a message if the user id of the message exist in the blocked list?