Laravel - Cache - Retrieve Delete

If you need to retrieve an item from the cache and then delete the item, you may use the pull method. Like the get method, null will be returned if the item does not exist in the cache:

    
    $value = Cache::pull('key');