user->playlists; if (License::isPlus()) { $accessiblePlaylists = $accessiblePlaylists->merge($this->user->collaboratedPlaylists); } if (array_diff(Arr::wrap($value), $accessiblePlaylists->pluck('id')->toArray())) { $fail( License::isPlus() ? 'Not all playlists are accessible by the user' : 'Not all playlists belong to the user' ); } } }