public function forget($key)
    {
        if($this->has($key)) {
            array_forget($this->data, $key);
        }

        $this->persist();
    }
public function forget($key)
    {
        if($this->has($key)) {
            array_forget($this->data, $key);
        }

        $this->persist();
    }
public function forget ( $ key ) { if ( $ this -> has ( $ key ) ) { array_forget ( $ this -> data , $ key ) ; } $ this -> persist ( ) ; }
Remove element from settings array

@param $key
Remove element from settings array