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