SyntaxFix
Write A Post
Hire A Developer
Questions
You can use the following way to get the unique data as per your need as follows,
$data = $ad->getcodes()->get()->unique('email'); $count = $data->count();
Hope this will work.