Eloquent\Dialect\Json::flagJsonAttribute PHP Method

flagJsonAttribute() public method

Record that a given JSON element is found on a particular column.
public flagJsonAttribute ( string $key, string $col )
$key string attribute name within the JSON column
$col string name of JSON column
    public function flagJsonAttribute($key, $col)
    {
        $this->jsonAttributes[$key] = $col;
    }