protected function getEditableItem($meta, $value)
    {
        if ($meta instanceof Collection) {
            if ($value === false) {
                return false;
            }

            $filtered = $meta->filter(function($m) use ($value) {
                return $m->value == $value;
            });

            $obj = $filtered->first();

            if ($obj == null) {
                return false;
            }

        } else {
            $obj = $meta;
        }

        return $obj->exists ? $obj : false;
    }
protected function getEditableItem($meta, $value)
    {
        if ($meta instanceof Collection) {
            if ($value === false) {
                return false;
            }

            $filtered = $meta->filter(function($m) use ($value) {
                return $m->value == $value;
            });

            $obj = $filtered->first();

            if ($obj == null) {
                return false;
            }

        } else {
            $obj = $meta;
        }

        return $obj->exists ? $obj : false;
    }
protected function getEditableItem ( $ meta , $ value ) { if ( $ meta instanceof Collection ) { if ( $ value === false ) { return false ; } $ filtered = $ meta -> filter ( function ( $ m ) use ( $ value ) { return $ m -> value == $ value ; } ) ; $ obj = $ filtered -> first ( ) ; if ( $ obj == null ) { return false ; } } else { $ obj = $ meta ; } return $ obj -> exists ? $ obj : false ; }
Gets an item to edit

@return mixed
Gets an item to edit