Crud\Traits\SerializeTrait::serialize PHP Method

serialize() public method

If $keys is NULL the current configuration is returned else the $serialize configuration is changed.
public serialize ( null | array $keys = null ) : mixed
$keys null | array Keys to serialize
return mixed
    public function serialize($keys = null)
    {
        if ($keys === null) {
            return (array) $this->config('serialize');
        }
        return $this->config('serialize', (array) $keys);
    }
SerializeTrait