Eloquent\Dialect\Json::hasGetMutator PHP Method

hasGetMutator() public method

Include JSON column in the list of attributes that have a get mutator.
public hasGetMutator ( string $key ) : boolean
$key string
return boolean
    public function hasGetMutator($key)
    {
        $jsonPattern = '/' . implode('|', self::$jsonOperators) . '/';
        if (array_key_exists($key, $this->jsonAttributes) !== false) {
            return true;
        } elseif (preg_match($jsonPattern, $key) != false) {
            return true;
        }
        return parent::hasGetMutator($key);
    }