$songs */ class PlaylistSongUpdateRequest extends Request { /** @return array */ public function rules(): array { return [ 'songs' => 'present|array', 'songs.*' => [Rule::exists(Song::class, 'id')], ]; } }