public function date($date=null)
    {
        if(is_null($date)) {
            $date = $this->created_at;
        }
        return String::date($date);
    }
public function date($date=null)
    {
        if(is_null($date)) {
            $date = $this->created_at;
        }
        return String::date($date);
    }
public function date ( $ date = null ) { if ( is_null ( $ date ) ) { $ date = $ this -> created_at ; } return String :: date ( $ date ) ; }
Get the date the post was created.

@param \Carbon|null $date
@return string
Get the date the post was created .