classes/Fields/Image.php
public function forElement(Element $el)
    {
        // Add help
        $this->model($el)->blockhelp($el->help);

        // Populate the image array with the image instance.  This will create an
        // Image instance from the default value if it doesn't exist.
        $pop = app('former.populator')->all();
        $pop['images'][$this->inputId()] = $el->img();
        app('former.populator')->replace($pop);

        // Support chaining
        return $this;
    }
public function forElement(Element $el)
    {
        // Add help
        $this->model($el)->blockhelp($el->help);

        // Populate the image array with the image instance.  This will create an
        // Image instance from the default value if it doesn't exist.
        $pop = app('former.populator')->all();
        $pop['images'][$this->inputId()] = $el->img();
        app('former.populator')->replace($pop);

        // Support chaining
        return $this;
    }
public function forElement ( Element $ el ) { // Add help $ this -> model ( $ el ) -> blockhelp ( $ el -> help ) ; // Populate the image array with the image instance.  This will create an // Image instance from the default value if it doesn't exist. $ pop = app ( 'former.populator' ) -> all ( ) ; $ pop [ 'images' ] [ $ this -> inputId ( ) ] = $ el -> img ( ) ; app ( 'former.populator' ) -> replace ( $ pop ) ; // Support chaining return $ this ; }
Logic for rendering an Image field for editing Element images

@param  Element $element
@return $this
Logic for rendering an Image field for editing Element images