private function toElequent(array $attributes)
    {
        $obj = new static();
        $casts = $obj->casts;
        $obj->casts = [];
        $obj->setRawAttributes($attributes);
        $obj->casts = $casts;

        return $obj;
    }
private function toElequent(array $attributes)
    {
        $obj = new static();
        $casts = $obj->casts;
        $obj->casts = [];
        $obj->setRawAttributes($attributes);
        $obj->casts = $casts;

        return $obj;
    }
private function toElequent ( array $ attributes ) { $ obj = new static ( ) ; $ casts = $ obj -> casts ; $ obj -> casts = [ ] ; $ obj -> setRawAttributes ( $ attributes ) ; $ obj -> casts = $ casts ; return $ obj ; }
Used to change data to the selected elequent

@param  array $attributes
@return ElasticSearchTrait
Used to change data to the selected elequent