Eloquent\Dialect\Json::showJsonAttributes PHP Method

showJsonAttributes() public method

Allows you to specify if the attributes within various json columns should be shown on toArray() and toJson() calls. Set this value in the models constructor (to make sure it is set before newFromBuilder() is called). This is true by default.
public showJsonAttributes ( $show ) : boolean
return boolean
    public function showJsonAttributes($show)
    {
        return $this->showJsonAttributes = $show;
    }