public function touch()
    {
        if (!$this->timestamps) {
            return false;
        }

        $this->setAttribute('updated_at', date('Y-m-d H:i:s'));

        return (bool) $this->save();
    }
public function touch()
    {
        if (!$this->timestamps) {
            return false;
        }

        $this->setAttribute('updated_at', date('Y-m-d H:i:s'));

        return (bool) $this->save();
    }
public function touch ( ) { if ( ! $ this -> timestamps ) { return false ; } $ this -> setAttribute ( 'updated_at' , date ( 'Y-m-d H:i:s' ) ) ; return ( bool ) $ this -> save ( ) ; }
Used to update the timestamp.

@return bool
Used to update the timestamp .