src/Constraints/FormFieldConstraint.php
protected function getElements()
    {
        $name = str_replace('#', '', $this->selector);

        $id = str_replace(['[', ']'], ['\\[', '\\]'], $name);

        return collect(explode(',', $this->validElements()))->map(function ($element) use ($name, $id) {
            return "{$element}#{$id}, {$element}[name='{$name}']";
        })->all();
    }
protected function getElements()
    {
        $name = str_replace('#', '', $this->selector);

        $id = str_replace(['[', ']'], ['\\[', '\\]'], $name);

        return collect(explode(',', $this->validElements()))->map(function ($element) use ($name, $id) {
            return "{$element}#{$id}, {$element}[name='{$name}']";
        })->all();
    }
protected function getElements ( ) { $ name = str_replace ( '#' , '' , $ this -> selector ) ; $ id = str_replace ( [ '[' , ']' ] , [ '\\[' , '\\]' ] , $ name ) ; return collect ( explode ( ',' , $ this -> validElements ( ) ) ) -> map ( function ( $ element ) use ( $ name , $ id ) { return "{$element}#{$id}, {$element}[name='{$name}']" ; } ) -> all ( ) ; }
Get the elements relevant to the selector.

@return array
Get the elements relevant to the selector .