src/Concerns/InteractsWithPages.php
protected function attach($absolutePath, $element)
    {
        $this->uploads[$element] = $absolutePath;

        return $this->storeInput($element, $absolutePath);
    }
protected function attach($absolutePath, $element)
    {
        $this->uploads[$element] = $absolutePath;

        return $this->storeInput($element, $absolutePath);
    }
protected function attach ( $ absolutePath , $ element ) { $ this -> uploads [ $ element ] = $ absolutePath ; return $ this -> storeInput ( $ element , $ absolutePath ) ; }
Attach a file to a form field on the page.

@param  string  $absolutePath
@param  string  $element
@return $this
Attach a file to a form field on the page .