use Illuminate\Support\Facades\Cache; // First, store some data in the cache with a tag Cache::tags(['animals', 'mammals'])->put('cat', 'My favorite animal', 60); Cache::tags(['animals', 'mammals'])->put('dog', 'My second favorite animal', 60); Cache::tags(['animals', 'reptiles'])->put('snake', 'My third favorite animal', 60); // Clear all cache items in the 'mammals' group Cache::tags('mammals')->flush();Example Description: In the above code example, we have used the clearGroup method to clear all cache items in the 'mammals' group. We have stored some data in the cache with tags using the Cache facade. Then, we have cleared all cache items in the 'mammals' group using the flush method. Package library: Laravel Cache Package.