Nwidart\Modules\Json::getAttributes PHP 메소드

getAttributes() 공개 메소드

Get file contents as array.
public getAttributes ( ) : array
리턴 array
    public function getAttributes()
    {
        if (config('modules.cache.enabled') === false) {
            return json_decode($this->getContents(), 1);
        }
        return app('cache')->remember($this->getPath(), config('modules.cache.lifetime'), function () {
            return json_decode($this->getContents(), 1);
        });
    }