src/Query/Builder.php
public function flushCache($cacheTags = null)
    {
        $cache = $this->getCacheDriver();

        if ( ! method_exists($cache, 'tags')) {
            return false;
        }

        $cacheTags = $cacheTags ?: $this->cacheTags;

        $cache->tags($cacheTags)->flush();

        return true;
    }
public function flushCache($cacheTags = null)
    {
        $cache = $this->getCacheDriver();

        if ( ! method_exists($cache, 'tags')) {
            return false;
        }

        $cacheTags = $cacheTags ?: $this->cacheTags;

        $cache->tags($cacheTags)->flush();

        return true;
    }
public function flushCache ( $ cacheTags = null ) { $ cache = $ this -> getCacheDriver ( ) ; if ( ! method_exists ( $ cache , 'tags' ) ) { return false ; } $ cacheTags = $ cacheTags ? : $ this -> cacheTags ; $ cache -> tags ( $ cacheTags ) -> flush ( ) ; return true ; }
Flush the cache for the current model or a given tag name

@param  mixed  $cacheTags
@return boolean
Flush the cache for the current model or a given tag name