inRandomOrder()->firstOrFail(); $target = Profile::whereDomain(false)->inRandomOrder()->firstOrFail(); if($actor->id == $target->id) { continue; } $follow = Follower::firstOrCreate([ 'profile_id' => $actor->id, 'following_id' => $target->id ]); if($follow->wasRecentlyCreated == true) { FollowPipeline::dispatch($follow); } } catch (Exception $e) { continue; } } } }