Untitled

mail@pastecode.io avatar
unknown
php
7 months ago
615 B
3
Indexable
Never
<?php

namespace MehediIitdu\CoreComponentRepository;
use App\Models\Addon;
use Cache;

class CoreComponentRepository
{
    public static function instantiateShopRepository() {
    }

    protected static function serializeObjectResponse($zn) {
    }

    protected static function finalizeRepository($rn) {
    }

    public static function initializeCache() {
        foreach(Addon::all() as $addon){
            Cache::rememberForever($addon->unique_identifier.'-purchased', function () {
                return 'yes';
            });
        }
    }

    public static function finalizeCache($addon){

    } 
}