public function setDates()
    {
        $date = Carbon::now();

        $this->setNotificationData('updated_at', $date);
        $this->setNotificationData('created_at', $date);
    }
public function setDates()
    {
        $date = Carbon::now();

        $this->setNotificationData('updated_at', $date);
        $this->setNotificationData('created_at', $date);
    }
public function setDates ( ) { $ date = Carbon :: now ( ) ; $ this -> setNotificationData ( 'updated_at' , $ date ) ; $ this -> setNotificationData ( 'created_at' , $ date ) ; }
Set updated_at and created_at fields.
Set updated_at and created_at fields .