Illuminate\Database\Eloquent\Model::freshTimestamp PHP Method

freshTimestamp() public method

Get a fresh timestamp for the model.
public freshTimestamp ( ) : Carbon\Carbon
return Carbon\Carbon
    public function freshTimestamp()
    {
        return new Carbon();
    }

Usage Example

 /**
  * Soft delete the record in the database.
  *
  * @return int
  */
 protected function softDelete()
 {
     $column = $this->model->getDeletedAtColumn();
     return $this->update(array($column => $this->model->freshTimestamp()));
 }
All Usage Examples Of Illuminate\Database\Eloquent\Model::freshTimestamp
Model