protected function formatValue($value)
    {
        // If the value is a date we'll format it according to the specified
        // date format.
        if ($value instanceof DateTime || $value instanceof Carbon)
        {
            $value = $value->format($this->grammar->getDateFormat());
        }

        return $value;
    }
protected function formatValue($value)
    {
        // If the value is a date we'll format it according to the specified
        // date format.
        if ($value instanceof DateTime || $value instanceof Carbon)
        {
            $value = $value->format($this->grammar->getDateFormat());
        }

        return $value;
    }
protected function formatValue ( $ value ) { // If the value is a date we'll format it according to the specified // date format. if ( $ value instanceof DateTime || $ value instanceof Carbon ) { $ value = $ value -> format ( $ this -> grammar -> getDateFormat ( ) ) ; } return $ value ; }
Fromat the value into its string representation.

@param  mixed $value

@return string
Fromat the value into its string representation .