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

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

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

@param string $column

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