public function delete()
    {
        $data = $this->getData();
        if (isset($this->currentId))
        {
            unset($data[$this->currentKey]);
        }
        else
        {
            $this->pending();
            $old  = $data;
            $data = array_diff_key($old, $this->data);
        }
        $this->data = array_values($data);

        return Helpers\Data::table($this->name)->put($this->data) ? true : false;
    }
public function delete()
    {
        $data = $this->getData();
        if (isset($this->currentId))
        {
            unset($data[$this->currentKey]);
        }
        else
        {
            $this->pending();
            $old  = $data;
            $data = array_diff_key($old, $this->data);
        }
        $this->data = array_values($data);

        return Helpers\Data::table($this->name)->put($this->data) ? true : false;
    }
public function delete ( ) { $ data = $ this -> getData ( ) ; if ( isset ( $ this -> currentId ) ) { unset ( $ data [ $ this -> currentKey ] ) ; } else { $ this -> pending ( ) ; $ old = $ data ; $ data = array_diff_key ( $ old , $ this -> data ) ; } $ this -> data = array_values ( $ data ) ; return Helpers \ Data :: table ( $ this -> name ) -> put ( $ this -> data ) ? true : false ; }
Deleting loaded data
@return boolean
Deleting loaded data