public function forget($key)
    {
        $this->fire('forgetting', $key, [$key]);

        $generatedKey = $this->getKey($key);

        $this->repository->forget($generatedKey);

        if ($this->isCacheEnabled()) {
            $this->cache->forget($generatedKey);
        }

        $this->fire('forget', $key, [$key]);

        $this->context(null);
    }
public function forget($key)
    {
        $this->fire('forgetting', $key, [$key]);

        $generatedKey = $this->getKey($key);

        $this->repository->forget($generatedKey);

        if ($this->isCacheEnabled()) {
            $this->cache->forget($generatedKey);
        }

        $this->fire('forget', $key, [$key]);

        $this->context(null);
    }
public function forget ( $ key ) { $ this -> fire ( 'forgetting' , $ key , [ $ key ] ) ; $ generatedKey = $ this -> getKey ( $ key ) ; $ this -> repository -> forget ( $ generatedKey ) ; if ( $ this -> isCacheEnabled ( ) ) { $ this -> cache -> forget ( $ generatedKey ) ; } $ this -> fire ( 'forget' , $ key , [ $ key ] ) ; $ this -> context ( null ) ; }
Forget current setting value.

@param string $key
@return void
Forget current setting value .