public static function forgetCache()
    {
        static::fireCacheFlushEvent('cache.flushing');

        // Flush cache tags
        if (method_exists(app('cache')->getStore(), 'tags')) {
            app('cache')->tags(static::class)->flush();
        } else {
            // Flush cache keys, then forget actual cache
            foreach (static::flushCacheKeys(static::class) as $cacheKey) {
                app('cache')->forget($cacheKey);
            }
        }

        static::fireCacheFlushEvent('cache.flushed', false);
    }
public static function forgetCache()
    {
        static::fireCacheFlushEvent('cache.flushing');

        // Flush cache tags
        if (method_exists(app('cache')->getStore(), 'tags')) {
            app('cache')->tags(static::class)->flush();
        } else {
            // Flush cache keys, then forget actual cache
            foreach (static::flushCacheKeys(static::class) as $cacheKey) {
                app('cache')->forget($cacheKey);
            }
        }

        static::fireCacheFlushEvent('cache.flushed', false);
    }
public static function forgetCache ( ) { static :: fireCacheFlushEvent ( 'cache.flushing' ) ; // Flush cache tags if ( method_exists ( app ( 'cache' ) -> getStore ( ) , 'tags' ) ) { app ( 'cache' ) -> tags ( static :: class ) -> flush ( ) ; } else { // Flush cache keys, then forget actual cache foreach ( static :: flushCacheKeys ( static :: class ) as $ cacheKey ) { app ( 'cache' ) -> forget ( $ cacheKey ) ; } } static :: fireCacheFlushEvent ( 'cache.flushed' , false ) ; }
Forget the model cache.

@return void
Forget the model cache .