whereDoesntHave('watchlist') ->pluck('id'); $userIds->each(function($userId) { Channel::create([ 'name' => 'watchlist', 'user_id' => $userId, 'internal' => true, 'public' => false, 'type' => 'list', 'config' => [ 'contentType' => 'manual', 'contentOrder' => 'channelables.order:asc', 'contentModel' => 'title', 'layout' => 'grid', 'preventDeletion' => true, ] ]); }); } }