src/Presenters/Presenter.php
public function dateOrNow($column = 'date')
    {
        $date = $this->entity->$column ?: Carbon::now();

        return $date->format('Y-m-d');
    }
public function dateOrNow($column = 'date')
    {
        $date = $this->entity->$column ?: Carbon::now();

        return $date->format('Y-m-d');
    }
public function dateOrNow ( $ column = 'date' ) { $ date = $ this -> entity -> $ column ? : Carbon :: now ( ) ; return $ date -> format ( 'Y-m-d' ) ; }
Return resource's date or curent date if empty.

@param string $column

@return Carbon
Return resource s date or curent date if empty .