Support the ongoing development of →
Eloquent Mail Laravel
Last updated 2 years ago.

OK I figured it out for anyone interested.

remove all duplicates, e.g. remove owner if already following $users = $users->unique('id');

if current user is following remove them $users = $users->reject(function ($value, $key) { return $value->id == Auth::user()->id; });

Last updated 4 years ago.

Sign in to participate in this thread!


Your banner here too?

illmatic illmatic Joined 28 Sep 2015


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 - All rights reserved.